本文整理汇总了Java中backtype.storm.hooks.info.EmitInfo类的典型用法代码示例。如果您正苦于以下问题:Java EmitInfo类的具体用法?Java EmitInfo怎么用?Java EmitInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EmitInfo类属于backtype.storm.hooks.info包,在下文中一共展示了EmitInfo类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
@Override
public void emit(EmitInfo info) {
super.emit(info);
if (null != info && null != info.values && providers.size() > 0) {
for (int v = 0; v < info.values.size(); v++) {
aggregate(info.values.get(v));
}
}
}
示例2: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
@Override
public void emit(EmitInfo info) {
if (null != info && null != info.values && info.taskId == taskId) {
String stream = info.stream;
if (null != stream && !isInternalStream(stream)) { // ignore the internal streams
itemsSend.addAndGet(info.values.size());
if (null != memGatherer) {
itemsVolume.addAndGet(memGatherer.getObjectSize(info.values));
}
MonitoringPluginRegistry.emitted(info);
}
}
}
示例3: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
@Override
public void emit(EmitInfo info) {
GlobalMetrics.incr("hook_emit");
++emitted;
if (emitted % N == 0) {
System.out.println("emit() is invoked in hook");
System.out.println(info.values);
System.out.println(info.taskId);
System.out.println(info.stream);
System.out.println(info.outTasks);
}
}
示例4: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
@Override
public void emit(EmitInfo info) {
}
示例5: emitted
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
/**
* Notifies about emitting tuples.
*
* @param info information about the last emit
*/
public static void emitted(EmitInfo info) {
for (int p = 0, n = PLUGINS.size(); p < n; p++) {
PLUGINS.get(p).emitted(info);
}
}
示例6: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
@Override
public void emit(EmitInfo info) {
send("EMIT", info.taskId, info.stream, info.outTasks.toString());
}
示例7: emitted
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
/**
* Notifies about emitting a tuples.
*
* @param info information about the last emit
*/
public void emitted(EmitInfo info);
示例8: emit
import backtype.storm.hooks.info.EmitInfo; //导入依赖的package包/类
void emit(EmitInfo info);