Tabnine Logo
ReturnResults.prepare
Code IndexAdd Tabnine to your IDE (free)

How to use
prepare
method
in
org.apache.storm.drpc.ReturnResults

Best Java code snippets using org.apache.storm.drpc.ReturnResults.prepare (Showing top 2 results out of 315)

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);
}
org.apache.storm.drpcReturnResultsprepare

Popular methods of ReturnResults

  • <init>
  • reconnectClient
  • cleanup
  • execute

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • startActivity (Activity)
  • getContentResolver (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • JPanel (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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