T - The type of the elements produced by the source.public static interface SourceFunction.SourceContext<T>
collect(T). If the source is a
Checkpointed source it must retrieve
the checkpoint lock object and use it to protect state updates and element emission as
described in SourceFunction.| Modifier and Type | Method and Description |
|---|---|
void |
collect(T element)
Emits one element from the source.
|
Object |
getCheckpointLock()
Returns the checkpoint lock.
|
void collect(T element)
Object getCheckpointLock()
SourceFunction.Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.