Package org.aksw.commons.util.stream
Class StreamOperatorCollapseRuns<T,K,V>
java.lang.Object
org.aksw.commons.util.stream.CollapseRunsSpecBase<T,K,V>
org.aksw.commons.util.stream.CollapseRunsOperationBase<T,K,V>
org.aksw.commons.util.stream.StreamOperatorCollapseRuns<T,K,V>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassTODO This class could be turned into a spliterator as follows: Upon splitting, consume one list of items with the same group key from the rhs.classNested classes/interfaces inherited from class org.aksw.commons.util.stream.CollapseRunsOperationBase
CollapseRunsOperationBase.AccumulatorBase -
Field Summary
Fields inherited from class org.aksw.commons.util.stream.CollapseRunsSpecBase
accAdd, accCtor, getGroupKey, groupKeyCompare -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,K, V> StreamOperatorCollapseRuns<T, K, V> create(CollapseRunsSpec<T, K, V> spec) static voidstatic <T> voidprint(Spliterator<T> root) static <T> voidsplit(Spliterator<T> root, Consumer<? super Spliterator<T>> action) Low-level iterator-based transformationtransform(Spliterator<T> upstream) Stream-based transformation.
-
Constructor Details
-
StreamOperatorCollapseRuns
-
-
Method Details
-
create
-
transform
Low-level iterator-based transformation -
transform
Stream-based transformation. Delegates close() calls to the input stream. Relies on the input's spliterator -
transform
-
split
-
print
-
main
-