org.gcube.data.streams.dsl.unfold
Class UnfoldThroughClause<E>

java.lang.Object
  extended by org.gcube.data.streams.dsl.StreamClause<E,StreamClauseEnv<E>>
      extended by org.gcube.data.streams.dsl.unfold.UnfoldThroughClause<E>
Type Parameters:
E - the type of stream elements

public class UnfoldThroughClause<E>
extends StreamClause<E,StreamClauseEnv<E>>

The clause of unfold sentences in which a Generator is configured on the output stream.

Author:
Fabio Simeoni

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

Constructor Detail

UnfoldThroughClause

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

Parameters:
stream - the stream
Method Detail

through

public <E2> UnfoldedStream<E,E2> through(Generator<E,Stream<E2>> generator)
Return a Stream configured with a given Generator.

Parameters:
generator - the generator
Returns:
the stream


Copyright © 2012. All Rights Reserved.