org.gcube.data.streams.dsl.consume
Class ConsumeWithClause<E>
java.lang.Object
org.gcube.data.streams.dsl.StreamClause<E,StreamClauseEnv<E>>
org.gcube.data.streams.dsl.consume.ConsumeWithClause<E>
- Type Parameters:
E - the type of stream elements
public class ConsumeWithClause<E>
- extends StreamClause<E,StreamClauseEnv<E>>
The clause of consume sentences in which a Callback is configured on the input stream.
- Author:
- Fabio Simeoni
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsumeWithClause
public ConsumeWithClause(Stream<E> stream)
- Creates an instance from an input
Stream
- Parameters:
stream - the stream
with
public <E2> void with(Callback<E> consumer)
- Return a
Stream configured with a given Callback.
- Parameters:
consumer - the consumer
Copyright © 2012. All Rights Reserved.