T - the type of the elements written to the sinkpublic abstract class Sink<T> extends Object
A Sink is written to by getting a SinkWriter and adding values to it.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Sink.SinkWriter<ElemT>
Writes to a Sink.
|
| Constructor and Description |
|---|
Sink() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supportsRestart()
Returns whether this Sink can be restarted.
|
abstract Sink.SinkWriter<T> |
writer()
Returns a Writer that allows writing to this Sink.
|
public abstract Sink.SinkWriter<T> writer() throws IOException
IOExceptionpublic boolean supportsRestart()