|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.tuple.TupleEntryCollector
public abstract class TupleEntryCollector
Interface TupleEntryCollector is used to allow BaseOperation
instances to emit result Tuple
values.
Field Summary | |
---|---|
protected TupleEntry |
tupleEntry
|
Constructor Summary | |
---|---|
protected |
TupleEntryCollector()
|
|
TupleEntryCollector(Fields declared)
Constructor TupleCollector creates a new TupleCollector instance. |
Method Summary | |
---|---|
void |
add(Tuple tuple)
Method add inserts the given Tuple into the outgoing stream. |
void |
add(TupleEntry tupleEntry)
Method add inserts the given TupleEntry into the outgoing stream. |
void |
close()
Method close closes the underlying resource being written to. |
protected abstract void |
collect(TupleEntry tupleEntry)
|
void |
setFields(Fields declared)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TupleEntry tupleEntry
Constructor Detail |
---|
protected TupleEntryCollector()
public TupleEntryCollector(Fields declared)
declared
- of type FieldsMethod Detail |
---|
public void setFields(Fields declared)
public void add(TupleEntry tupleEntry)
TupleEntry
into the outgoing stream. Note the method add(Tuple)
is
more efficient as it simply calls TupleEntry.getTuple()
;
tupleEntry
- of type TupleEntrypublic void add(Tuple tuple)
Tuple
into the outgoing stream.
tuple
- of type Tupleprotected abstract void collect(TupleEntry tupleEntry) throws IOException
IOException
public void close()
Tap.openForWrite(cascading.flow.FlowProcess)
and no more Tuple
instances will be written out.
This method must not be called when an instance is returned from getOutputCollector()
from any of
the relevant OperationCall
implementations (inside a Function, Aggregator, or Buffer).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |