Examples of Values


Examples of LONI.tree.module.Values

    this.fileTypes = new FileTypes();
    this.inputs = new ArrayList<Parameter>();
    this.outputs = new ArrayList<Output>();
    this.inputs = new ArrayList<Parameter>();
    this.tags = new ArrayList<String>();
    this.values = new Values();
    this.authors = new Authors();
  }
View Full Code Here

Examples of backtype.storm.tuple.Values

                // enough to return record?
                if( (currentOffset - currentBeginOffset) == recordSize ) {
                    // we have exactly right amount of bytes, so return it
                    currentBeginOffset = currentOffset;
                    return new Values(recordBuffer);
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of backtype.storm.tuple.Values

  public void open(Map conf, TopologyContext context,
      SpoutOutputCollector collector) {
    this._collector = collector;

    values = new ArrayList<Values>();
    values.add(new Values("http://bit.ly/ZK6t", "www.arsenal.com/home", "kinley", "20120816"));
    values.add(new Values("http://bit.ly/LsaBa", "www.baltimoreravens.com/", "kinley", "20120816"));
    values.add(new Values("http://bit.ly/2VL7eA", "www.49ers.com/", "kinley", "20120816"));
    values.add(new Values("http://bit.ly/9ZJhuY", "www.buccaneers.com/index.html", "kinley", "20120816"));
    values.add(new Values("http://atmlb.com/7NG4sm", "baltimore.orioles.mlb.com/", "kinley", "20120816"));
  }
View Full Code Here

Examples of backtype.storm.tuple.Values

      String monthly = tuple.getString(1).substring(0, 6);
      Integer week = dtf.parseDateTime(tuple.getString(1)).getWeekOfWeekyear();
      String weekly = tuple.getString(1).substring(0, 4)
          .concat(week.toString());

      collector.emit(new Values(cfStatsDaily, tuple.getString(1)));
      collector.emit(new Values(cfStatsMonthly, monthly));
      collector.emit(new Values(cfStatsWeekly, weekly));
    }
View Full Code Here

Examples of backtype.storm.tuple.Values

                Bytes.toString(c.getKey())), ex);
            }

            putLatestTxid(inc.getRow(), e.getKey(), txidCQ);

            collector.emit(new Values(inc.getRow(), e.getKey(), c.getKey(), counter));

            if (LOG.isDebugEnabled()) {
              LOG.debug(String.format(
                "txids for counter %s, %s, %s are different [%d, %d], incrementing",
                Bytes.toString(inc.getRow()), Bytes.toString(e.getKey()),
View Full Code Here

Examples of backtype.storm.tuple.Values

    if (LOG.isDebugEnabled()) {
      LOG.debug("Creating new HBaseState: " + type);
    }

    return new SnapshottableMap(ms, new Values("$GLOBAL$"));
  }
View Full Code Here

Examples of backtype.storm.tuple.Values

        }
    }
   
    public static StormTopology buildTopology(LocalDRPC drpc) {
        FixedBatchSpout spout = new FixedBatchSpout(new Fields("sentence"), 3,
                new Values("the dog jumped over the moon"),
                new Values("the man went to the store and bought some candy"),
                new Values("four score and seven years ago"),
                new Values("how many apples can you eat"),
                new Values("to be or not to be the person"));
        spout.setCycle(false);
       
        TridentTopology topology = new TridentTopology();
        TridentState wordCounts =
              topology.newStream("spout1", spout)
View Full Code Here

Examples of backtype.storm.tuple.Values

    public static class Split extends BaseFunction {
        @Override
        public void execute(TridentTuple tuple, TridentCollector collector) {
            String sentence = tuple.getString(0);
            for(String word: sentence.split(" ")) {
                collector.emit(new Values(word));
            }
        }
View Full Code Here

Examples of backtype.storm.tuple.Values

    public static class Split extends BaseFunction {
        @Override
        public void execute(TridentTuple tuple, TridentCollector collector) {
            String sentence = tuple.getString(0);
            for(String word: sentence.split(" ")) {
                collector.emit(new Values(word));
            }
        }
View Full Code Here

Examples of backtype.storm.tuple.Values

        @Override
        public void execute(TridentTuple tuple, TridentCollector collector) {
            List l = (List) tuple.getValue(0);
            if(l!=null) {
                for(Object o: l) {
                    collector.emit(new Values(o));
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.