Modifier and Type | Class and Description |
---|---|
class |
ListKeyGroupedIterator.ValuesIterator |
Constructor and Description |
---|
ListKeyGroupedIterator(List<E> input,
TypeSerializer<E> serializer,
TypeComparator<E> comparator)
Initializes the ListKeyGroupedIterator..
|
Modifier and Type | Method and Description |
---|---|
ListKeyGroupedIterator.ValuesIterator |
getValues()
Returns an iterator over all values that belong to the current key.
|
boolean |
nextKey()
Moves the iterator to the next key.
|
public ListKeyGroupedIterator(List<E> input, TypeSerializer<E> serializer, TypeComparator<E> comparator)
input
- The list with the input elements.comparator
- The comparator for the data type iterated over.public boolean nextKey() throws IOException
getValues()
method. Hence, if called
multiple times it "removes" key groups.IOException
public ListKeyGroupedIterator.ValuesIterator getValues()
null
(before the first call to nextKey()
and after all keys are
consumed. In general, this method returns always a non-null value, if a previous call to
nextKey()
return true
.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.