congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JOptionPane (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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