use of com.hortonworks.streamline.streams.StreamlineEvent in project streamline by hortonworks.
the class EventCorrelatingOutputCollector method emitDirect.
@Override
public void emitDirect(int taskId, Tuple anchor, List<Object> tuple) {
StreamlineEvent newEvent = injectCorrelationInformation(anchor, tuple);
delegate.emitDirect(taskId, anchor, new Values(newEvent));
}
use of com.hortonworks.streamline.streams.StreamlineEvent in project streamline by hortonworks.
the class EventCorrelatingOutputCollector method emitDirect.
@Override
public void emitDirect(int taskId, String streamId, Tuple anchor, List<Object> tuple) {
StreamlineEvent newEvent = injectCorrelationInformation(anchor, tuple);
delegate.emitDirect(taskId, streamId, anchor, new Values(newEvent));
}
use of com.hortonworks.streamline.streams.StreamlineEvent in project streamline by hortonworks.
the class EventCorrelatingOutputCollector method emitDirect.
@Override
public void emitDirect(int taskId, String streamId, List<Object> tuple) {
StreamlineEvent newEvent = injectCorrelationInformation(tuple);
delegate.emitDirect(taskId, streamId, new Values(newEvent));
}
use of com.hortonworks.streamline.streams.StreamlineEvent in project streamline by hortonworks.
the class EventCorrelatingOutputCollector method emitDirect.
@Override
public void emitDirect(int taskId, Collection<Tuple> anchors, List<Object> tuple) {
StreamlineEvent newEvent = injectCorrelationInformation(anchors, tuple);
delegate.emitDirect(taskId, anchors, new Values(newEvent));
}
use of com.hortonworks.streamline.streams.StreamlineEvent in project streamline by hortonworks.
the class StreamlineEventHBaseMapper method columns.
@Override
public ColumnList columns(Tuple tuple) {
StreamlineEvent event = (StreamlineEvent) tuple.getValueByField(StreamlineEvent.STREAMLINE_EVENT);
ColumnList columnList = new ColumnList();
for (String key : event.keySet()) {
// Hbase bolt can not handle null values.
if (event.get(key) != null) {
columnList.addColumn(columnFamily, key.getBytes(Charsets.UTF_8), toBytes(event.get(key)));
}
}
return columnList;
}
Aggregations