org.gcube.data.streams.dsl.consume
Class ConsumeWithClause<E>

java.lang.Object
  extended by org.gcube.data.streams.dsl.StreamClause<E,StreamClauseEnv<E>>
      extended by 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

Field Summary
 
Fields inherited from class org.gcube.data.streams.dsl.StreamClause
env
 
Constructor Summary
ConsumeWithClause(Stream<E> stream)
          Creates an instance from an input Stream
 
Method Summary
<E2> void
with(Callback<E> consumer)
          Return a Stream configured with a given Callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumeWithClause

public ConsumeWithClause(Stream<E> stream)
Creates an instance from an input Stream

Parameters:
stream - the stream
Method Detail

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.