Package org.apache.heron.streamlet
Interface Sink<T>
-
- All Superinterfaces:
Serializable
public interface Sink<T> extends Serializable
Sink is how Streamlet's end. The put method invocation consumes the tuple into say external database/cache, etc. setup/cleanup is where the sink can do any one time setup work, like establishing/closing connection to sources, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cleanup()
void
put(T tuple)
void
setup(Context context)
-