public class BasePartitionTap.PartitionCollector extends TupleEntryCollector
tupleEntry
Constructor and Description |
---|
PartitionCollector(FlowProcess<? extends Config> flowProcess) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Method close closes the underlying resource being written to.
|
void |
closeCollector(java.lang.String path) |
protected void |
collect(TupleEntry tupleEntry) |
add, add, addTuple, addTupleEntry, setFields
public PartitionCollector(FlowProcess<? extends Config> flowProcess)
public void close()
TupleEntryCollector
This method should be called when when an instance is returned via
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).
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class TupleEntryCollector
public void closeCollector(java.lang.String path)
protected void collect(TupleEntry tupleEntry) throws java.io.IOException
collect
in class TupleEntryCollector
java.io.IOException
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.