Package org.apache.heron.streamlet
Interface Source<T>
-
- All Superinterfaces:
Serializable
public interface Source<T> extends Serializable
Source is how Streamlet's originate. The get method invocation returns new element that form the tuples of the streamlet. setup/cleanup is where the generator 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()
Collection<T>
get()
void
setup(Context context)
-
-
-
Method Detail
-
setup
void setup(Context context)
-
get
Collection<T> get()
-
cleanup
void cleanup()
-
-