public class StreamingDiskPersistSink<T> extends BaseSinkFunc<T>
Constructor and Description |
---|
StreamingDiskPersistSink(java.lang.String referencePrefix)
Creates an instance of
StreamingDiskPersistSink 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 StreamingDiskPersistSink(java.lang.String referencePrefix)
StreamingDiskPersistSink
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