Search in sources :

Example 11 with TupleEntry

use of cascading.tuple.TupleEntry in project elephant-bird by twitter.

the class LzoBinaryScheme method sink.

@Override
public void sink(FlowProcess<? extends Configuration> flowProcess, SinkCall<T, OutputCollector> sinkCall) throws IOException {
    OutputCollector collector = sinkCall.getOutput();
    TupleEntry entry = sinkCall.getOutgoingEntry();
    T writable = sinkCall.getContext();
    writable.set((M) entry.getTuple().getObject(0));
    collector.collect(null, writable);
}
Also used : OutputCollector(org.apache.hadoop.mapred.OutputCollector) TupleEntry(cascading.tuple.TupleEntry)

Aggregations

TupleEntry (cascading.tuple.TupleEntry)11 OutputCollector (org.apache.hadoop.mapred.OutputCollector)9 Tuple (cascading.tuple.Tuple)5 Fields (cascading.tuple.Fields)2 Put (org.apache.hadoop.hbase.client.Put)2 ImmutableBytesWritable (org.apache.hadoop.hbase.io.ImmutableBytesWritable)2