Tabnine Logo
GroupedStream.persistentAggregate
Code IndexAdd Tabnine to your IDE (free)

How to use
persistentAggregate
method
in
storm.trident.fluent.GroupedStream

Best Java code snippets using storm.trident.fluent.GroupedStream.persistentAggregate (Showing top 20 results out of 315)

origin: alibaba/jstorm

public TridentState persistentAggregate(StateSpec spec, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}
origin: alibaba/jstorm

public TridentState persistentAggregate(StateSpec spec, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}
origin: alibaba/jstorm

public TridentState persistentAggregate(StateFactory stateFactory, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}
origin: alibaba/jstorm

public TridentState persistentAggregate(StateFactory stateFactory, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}
origin: alibaba/jstorm

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
origin: alibaba/jstorm

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
origin: alibaba/jstorm

public static StormTopology buildTopology(LocalDRPC drpc) {
  FixedBatchSpout spout = new FixedBatchSpout(new Fields("word"), 3, new Values("the cow 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(true);
  
  TridentTopology topology = new TridentTopology();
  TridentState wordCounts = topology.newStream("spout1", spout).parallelismHint(16).flatMap(split).map(toUpper)
      .filter(theFilter).peek(new Consumer() {
        @Override
        public void accept(TridentTuple input) {
          System.out.println(input.getString(0));
        }
      }).groupBy(new Fields("word"))
      .persistentAggregate(new MemoryMapState.Factory(), new Count(), new Fields("count"))
      .parallelismHint(16);
      
  topology.newDRPCStream("words", drpc).flatMap(split).groupBy(new Fields("args"))
      .stateQuery(wordCounts, new Fields("args"), new MapGet(), new Fields("count")).filter(new FilterNull())
      .aggregate(new Fields("count"), new Sum(), new Fields("sum"));
  return topology.build();
}

origin: alibaba/jstorm

public static StormTopology buildTopology(LocalDRPC drpc) {
  FixedBatchSpout spout = new FixedBatchSpout(new Fields("sentence"), 3,
      new Values("the cow 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(true);
  
  TridentTopology topology = new TridentTopology();
  TridentState wordCounts = topology.newStream("spout1", spout).parallelismHint(16)
      .each(new Fields("sentence"), new Split(), new Fields("word")).groupBy(new Fields("word"))
      .persistentAggregate(new MemoryMapState.Factory(), new Count(), new Fields("count"))
      .parallelismHint(16);
      
  topology.newDRPCStream("words", drpc).each(new Fields("args"), new Split(), new Fields("word"))
      .groupBy(new Fields("word"))
      .stateQuery(wordCounts, new Fields("word"), new MapGet(), new Fields("count"))
      .each(new Fields("count"), new FilterNull())
      .aggregate(new Fields("count"), new Sum(), new Fields("sum"));
  return topology.build();
}

origin: alibaba/jstorm

TridentState wordCounts = topology.newStream("spout1", spout).parallelismHint(spout_Parallelism_hint)
    .each(new Fields("sentence"), new Split(), new Fields("word")).parallelismHint(split_Parallelism_hint).groupBy(new Fields("word"))
    .persistentAggregate(new MemoryMapState.Factory(), new Count(), new Fields("count"))
    .parallelismHint(count_Parallelism_hint);
origin: com.alibaba.jstorm/jstorm-core

public TridentState persistentAggregate(StateSpec spec, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}
origin: com.alibaba.jstorm/jstorm-core

public TridentState persistentAggregate(StateSpec spec, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}
origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateSpec spec, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}    

origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateSpec spec, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(spec, null, agg, functionFields);
}
origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateFactory stateFactory, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}

origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
origin: com.alibaba.jstorm/jstorm-core

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
origin: com.n3twork.storm/storm-core

public TridentState persistentAggregate(StateFactory stateFactory, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}
origin: com.alibaba.jstorm/jstorm-core

public TridentState persistentAggregate(StateFactory stateFactory, CombinerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}
origin: com.alibaba.jstorm/jstorm-core

public TridentState persistentAggregate(StateFactory stateFactory, Fields inputFields, ReducerAggregator agg, Fields functionFields) {
  return persistentAggregate(new StateSpec(stateFactory), inputFields, agg, functionFields);
}
storm.trident.fluentGroupedStreampersistentAggregate

Popular methods of GroupedStream

  • aggregate
  • stateQuery
  • <init>
  • chainedAgg
  • getGroupFields
  • toStream
  • aggPartition
  • each
  • partitionAggregate

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now