T - The type of elements in the bag.@Experimental(value=STATE) public interface BagState<T> extends GroupingState<T,java.lang.Iterable<T>>
ReadableState cell containing a bag of values. Items can be added to the bag and the
contents read out.
Implementations of this form of state are expected to implement GroupingState.add(InputT) efficiently, not
via a sequence of read-modify-write.
| Modifier and Type | Method and Description |
|---|---|
BagState<T> |
readLater()
Indicate that the value will be read later.
|
add, isEmptyreadBagState<T> readLater()
ReadableStateThis allows an implementation to start an asynchronous prefetch or to include this state in the next batch of reads.
readLater in interface GroupingState<T,java.lang.Iterable<T>>readLater in interface ReadableState<java.lang.Iterable<T>>