org.gcube.data.streams.dsl.fold
Class InClause<E>
java.lang.Object
org.gcube.data.streams.dsl.StreamClause<E,StreamClauseEnv<E>>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InClause
public InClause(Stream<E> stream)
- Creates an instance with an input
Stream.
- Parameters:
stream - the stream
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.