Tabnine Logo
Stream.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
storm.trident.Stream
constructor

Best Java code snippets using storm.trident.Stream.<init> (Showing top 15 results out of 315)

origin: alibaba/jstorm

/**
 * Applies a label to the stream. Naming a stream will append the label to the name of the bolt(s) created by
 * Trident and will be visible in the Storm UI.
 *
 * @param name - The label to apply to the stream
 * @return
 */
public Stream name(String name) {
  return new Stream(_topology, name, _node);
}
origin: alibaba/jstorm

public Stream newValuesStream() {
  return new Stream(_topology, _node.name, _node);
}
origin: alibaba/jstorm

protected Stream addNode(Node n) {
  registerNode(n);
  return new Stream(this, n.name, n);
}
origin: alibaba/jstorm

protected Stream addSourcedNode(List<Stream> sources, Node newNode) {
  registerSourcedNode(sources, newNode);
  return new Stream(this, newNode.name, newNode);
}

origin: alibaba/jstorm

private static void completeDRPC(DefaultDirectedGraph<Node, IndexedEdge> graph, Map<String, List<Node>> colocate, UniqueIdGen gen) {
  List<Set<Node>> connectedComponents = new ConnectivityInspector<>(graph).connectedSets();
  
  for(Set<Node> g: connectedComponents) {
    checkValidJoins(g);
  }
  
  TridentTopology helper = new TridentTopology(graph, colocate, gen);
  for(Set<Node> g: connectedComponents) {
    SpoutNode drpcNode = getDRPCSpoutNode(g);
    if(drpcNode!=null) {
      Stream lastStream = new Stream(helper, null, getLastAddedNode(g));
      Stream s = new Stream(helper, null, drpcNode);
      helper.multiReduce(
          s.project(new Fields("return-info"))
           .batchGlobal(),
          lastStream.batchGlobal(),
          new ReturnResultsReducer(),
          new Fields());
    }
  }                
}

origin: com.alibaba.jstorm/jstorm-core

/**
 * Applies a label to the stream. Naming a stream will append the label to the name of the bolt(s) created by
 * Trident and will be visible in the Storm UI.
 *
 * @param name - The label to apply to the stream
 * @return
 */
public Stream name(String name) {
  return new Stream(_topology, name, _node);
}
origin: com.alibaba.jstorm/jstorm-core

public Stream newValuesStream() {
  return new Stream(_topology, _node.name, _node);
}
origin: com.n3twork.storm/storm-core

public Stream newValuesStream() {
  return new Stream(_topology, _node.name, _node);
}

origin: com.n3twork.storm/storm-core

public Stream name(String name) {
  return new Stream(_topology, name, _node);
}

origin: com.alibaba.jstorm/jstorm-core

protected Stream addSourcedNode(List<Stream> sources, Node newNode) {
  registerSourcedNode(sources, newNode);
  return new Stream(this, newNode.name, newNode);
}

origin: com.n3twork.storm/storm-core

protected Stream addNode(Node n) {
  registerNode(n);
  return new Stream(this, n.name, n);
}
origin: com.alibaba.jstorm/jstorm-core

protected Stream addNode(Node n) {
  registerNode(n);
  return new Stream(this, n.name, n);
}
origin: com.n3twork.storm/storm-core

protected Stream addSourcedNode(List<Stream> sources, Node newNode) {
  registerSourcedNode(sources, newNode);
  return new Stream(this, newNode.name, newNode);
}

origin: com.alibaba.jstorm/jstorm-core

private static void completeDRPC(DefaultDirectedGraph<Node, IndexedEdge> graph, Map<String, List<Node>> colocate, UniqueIdGen gen) {
  List<Set<Node>> connectedComponents = new ConnectivityInspector<>(graph).connectedSets();
  
  for(Set<Node> g: connectedComponents) {
    checkValidJoins(g);
  }
  
  TridentTopology helper = new TridentTopology(graph, colocate, gen);
  for(Set<Node> g: connectedComponents) {
    SpoutNode drpcNode = getDRPCSpoutNode(g);
    if(drpcNode!=null) {
      Stream lastStream = new Stream(helper, null, getLastAddedNode(g));
      Stream s = new Stream(helper, null, drpcNode);
      helper.multiReduce(
          s.project(new Fields("return-info"))
           .batchGlobal(),
          lastStream.batchGlobal(),
          new ReturnResultsReducer(),
          new Fields());
    }
  }                
}

origin: com.n3twork.storm/storm-core

private static void completeDRPC(DefaultDirectedGraph<Node, IndexedEdge> graph, Map<String, List<Node>> colocate, UniqueIdGen gen) {
  List<Set<Node>> connectedComponents = new ConnectivityInspector<Node, IndexedEdge>(graph).connectedSets();
  
  for(Set<Node> g: connectedComponents) {
    checkValidJoins(g);
  }
  
  TridentTopology helper = new TridentTopology(graph, colocate, gen);
  for(Set<Node> g: connectedComponents) {
    SpoutNode drpcNode = getDRPCSpoutNode(g);
    if(drpcNode!=null) {
      Stream lastStream = new Stream(helper, null, getLastAddedNode(g));
      Stream s = new Stream(helper, null, drpcNode);
      helper.multiReduce(
          s.project(new Fields("return-info"))
           .batchGlobal(),
          lastStream.batchGlobal(),
          new ReturnResultsReducer(),
          new Fields());
    }
  }                
}

storm.tridentStream<init>

Popular methods of Stream

  • each
  • groupBy
    ## Grouping Operation
  • project
    Filters out fields from a stream, resulting in a Stream containing only the fields specified by `kee
  • aggregate
  • partitionBy
    ## Repartitioning Operation
  • shuffle
    ## Repartitioning Operation Use random round robin algorithm to evenly redistribute tuples across al
  • stateQuery
  • parallelismHint
    Applies a parallelism hint to a stream.
  • partitionAggregate
  • partitionPersist
  • global
    ## Repartitioning Operation All tuples are sent to the same partition. The same partition is chosen
  • batchGlobal
    ## Repartitioning Operation All tuples in the batch are sent to the same partition. Different batche
  • global,
  • batchGlobal,
  • chainedAgg,
  • broadcast,
  • getOutputFields,
  • name,
  • partition,
  • persistentAggregate,
  • projectionValidation

Popular in Java

  • Parsing JSON documents to java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • getSystemService (Context)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • BoxLayout (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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