Class StreamOperatorCollapseRuns.OperatorImpl
java.lang.Object
CollapseRunsOperationBase<T,K,V>.org.aksw.commons.util.stream.CollapseRunsOperationBase.AccumulatorBase
org.aksw.commons.util.stream.StreamOperatorCollapseRuns.OperatorImpl
- Enclosing class:
StreamOperatorCollapseRuns<T,K, V>
public class StreamOperatorCollapseRuns.OperatorImpl
extends CollapseRunsOperationBase<T,K,V>.AccumulatorBase
TODO 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.
Append this list to the spliterator of the lhs.
- Author:
- raven
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanIf there is a pending group it will create a new accumulator on the next call to computeNext()protected TThe last seen itemprotected KFields inherited from class CollapseRunsOperationBase.AccumulatorBase
accNum, currentAcc, currentKey, lastItemSent, priorKey -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
upstream
-
downstream
-
item
The last seen item -
hasPendingGroup
protected boolean hasPendingGroupIf there is a pending group it will create a new accumulator on the next call to computeNext() -
pendingGroupKey
-
-
Constructor Details
-
OperatorImpl
-
-
Method Details
-
getLastSeenItem
-
getDownstream
-