org.gcube.data.streams.dsl.fold
Class InClause<E>

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

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

The clause of fold sentences in which a fold size is configured for the output stream.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.data.streams.dsl.StreamClause
env
 
Constructor Summary
InClause(Stream<E> stream)
          Creates an instance with an input Stream.
 
Method Summary
 FoldedStream<E> in(int foldSize)
          Returns a Stream that folds the element of the input Stream in lists of a given size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InClause

public InClause(Stream<E> stream)
Creates an instance with an input Stream.

Parameters:
stream - the stream
Method Detail

in

public FoldedStream<E> in(int foldSize)
Returns a Stream that folds the element of the input Stream in lists of a given size.

Parameters:
foldSize - the size
Returns:
the stream


Copyright © 2012. All Rights Reserved.