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

How to use
org.apache.storm.drpc.ReturnResults
constructor

Best Java code snippets using org.apache.storm.drpc.ReturnResults.<init> (Showing top 5 results out of 315)

origin: apache/storm

public static void main(String[] args) throws Exception {
  TopologyBuilder builder = new TopologyBuilder();
  DRPCSpout spout = new DRPCSpout("exclamation");
  builder.setSpout("drpc", spout);
  builder.setBolt("exclaim", new ExclamationBolt(), 3).shuffleGrouping("drpc");
  builder.setBolt("return", new ReturnResults(), 3).shuffleGrouping("exclaim");
  Config conf = new Config();
  StormSubmitter.submitTopology("exclaim", conf, builder.createTopology());
  try (DRPCClient drpc = DRPCClient.getConfiguredClient(conf)) {
    System.out.println(drpc.execute("exclamation", "aaa"));
    System.out.println(drpc.execute("exclamation", "bbb"));
  }
}
origin: apache/storm

    .fieldsGrouping(PREPARE_ID, PrepareRequest.RETURN_STREAM, new Fields("request"));
i++;
builder.setBolt(boltId(i), new ReturnResults())
    .noneGrouping(boltId(i - 1));
return builder.createTopology();
origin: com.yahoo.bullet/bullet-storm

 /**
 * Creates and initializes a Publisher that writes to the DRPC servers. Intended to be used inside a Storm
 * bolt in a Storm topology.
 *
 * @param config Needs the Storm configuration {@link Map} in {@link com.yahoo.bullet.storm.BulletStormConfig#STORM_CONFIG}.
 */
public DRPCResultPublisher(BulletConfig config) {
  // Get the Storm Config that has all the relevant cluster settings and properties
  Map stormConfig = config.getRequiredConfigAs(DRPCConfig.STORM_CONFIG, Map.class);
  collector = new DRPCOutputCollector();
  // Wrap the collector in a OutputCollector (it just delegates to the underlying DRPCOutputCollector)
  OutputCollector boltOutputCollector = new OutputCollector(collector);
  bolt = new ReturnResults();
  // No need for a TopologyContext
  bolt.prepare(stormConfig, null, boltOutputCollector);
}
origin: bullet-db/bullet-storm

 /**
 * Creates and initializes a Publisher that writes to the DRPC servers. Intended to be used inside a Storm
 * bolt in a Storm topology.
 *
 * @param config Needs the Storm configuration {@link Map} in {@link com.yahoo.bullet.storm.BulletStormConfig#STORM_CONFIG}.
 */
public DRPCResultPublisher(BulletConfig config) {
  // Get the Storm Config that has all the relevant cluster settings and properties
  Map stormConfig = config.getRequiredConfigAs(DRPCConfig.STORM_CONFIG, Map.class);
  collector = new DRPCOutputCollector();
  // Wrap the collector in a OutputCollector (it just delegates to the underlying DRPCOutputCollector)
  OutputCollector boltOutputCollector = new OutputCollector(collector);
  bolt = new ReturnResults();
  // No need for a TopologyContext
  bolt.prepare(stormConfig, null, boltOutputCollector);
}
origin: org.apache.storm/storm-core

    .fieldsGrouping(PREPARE_ID, PrepareRequest.RETURN_STREAM, new Fields("request"));
i++;
builder.setBolt(boltId(i), new ReturnResults())
    .noneGrouping(boltId(i-1));
return builder.createTopology();
org.apache.storm.drpcReturnResults<init>

Popular methods of ReturnResults

  • reconnectClient
  • cleanup
  • execute
  • prepare

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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