本文整理汇总了Java中storm.trident.spout.RichSpoutBatchExecutor类的典型用法代码示例。如果您正苦于以下问题:Java RichSpoutBatchExecutor类的具体用法?Java RichSpoutBatchExecutor怎么用?Java RichSpoutBatchExecutor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RichSpoutBatchExecutor类属于storm.trident.spout包,在下文中一共展示了RichSpoutBatchExecutor类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newStream
import storm.trident.spout.RichSpoutBatchExecutor; //导入依赖的package包/类
public Stream newStream(String txId, IRichSpout spout) {
return newStream(txId, new RichSpoutBatchExecutor(spout));
}
示例2: getCoordinator
import storm.trident.spout.RichSpoutBatchExecutor; //导入依赖的package包/类
@Override
public BatchCoordinator<Set<String>> getCoordinator(String txStateId, Map conf, TopologyContext context) {
return new Coordinator((Long) conf.get(RichSpoutBatchExecutor.MAX_BATCH_SIZE_CONF));
}