public class RecordsBySplits<E> extends Object implements RecordsWithSplitIds<E>
Modifier and Type | Class and Description |
---|---|
static class |
RecordsBySplits.Builder<E>
A utility builder to collect records in individual calls, rather than put a finished
collection in the
RecordsBySplits(Map, Set) constructor. |
Constructor and Description |
---|
RecordsBySplits(Map<String,Collection<E>> recordsBySplit,
Set<String> finishedSplits) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
finishedSplits()
Get the finished splits.
|
E |
nextRecordFromSplit()
Gets the next record from the current split.
|
String |
nextSplit()
Moves to the next split.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
recycle
@Nullable public String nextSplit()
RecordsWithSplitIds
nextSplit
in interface RecordsWithSplitIds<E>
@Nullable public E nextRecordFromSplit()
RecordsWithSplitIds
nextRecordFromSplit
in interface RecordsWithSplitIds<E>
public Set<String> finishedSplits()
RecordsWithSplitIds
finishedSplits
in interface RecordsWithSplitIds<E>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.