public class DiskPersistSingleSink<T> extends BaseSinkFunc<T>
Constructor and Description |
---|
DiskPersistSingleSink(java.lang.String referencePrefix)
Creates an instance of
DiskPersistSingleSink with a referencePrefix |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T value)
Every time an edge produces a value, this method is called.
|
void |
close() |
DiskBackedCollectionPartition<T> |
get()
Return the data partition associated with this task instance.
|
void |
prepare(TSetContext ctx)
Prepare the function.
|
getInput, getTSetContext
public DiskPersistSingleSink(java.lang.String referencePrefix)
DiskPersistSingleSink
with a referencePrefixreferencePrefix
- referencePrefix will be used to uniquely identify the set of
disk partitions created with this functionpublic void prepare(TSetContext ctx)
TFunction
public boolean add(T value)
SinkFunc
value
- the value to addpublic void close()
public DiskBackedCollectionPartition<T> get()
SinkFunc