public static class NumberSequenceSource.NumberSequenceSplit extends Object implements IteratorSourceSplit<Long,NumberSequenceIterator>
Constructor and Description |
---|
NumberSequenceSplit(String splitId,
long from,
long to) |
Modifier and Type | Method and Description |
---|---|
long |
from() |
NumberSequenceIterator |
getIterator()
Gets the iterator over the elements of this split.
|
IteratorSourceSplit<Long,NumberSequenceIterator> |
getUpdatedSplitForIterator(NumberSequenceIterator iterator)
Converts an iterator (that may have returned some elements already) back into a source split.
|
String |
splitId()
Get the split id of this source split.
|
long |
to() |
String |
toString() |
public NumberSequenceSplit(String splitId, long from, long to)
public String splitId()
SourceSplit
splitId
in interface SourceSplit
public long from()
public long to()
public NumberSequenceIterator getIterator()
IteratorSourceSplit
getIterator
in interface IteratorSourceSplit<Long,NumberSequenceIterator>
public IteratorSourceSplit<Long,NumberSequenceIterator> getUpdatedSplitForIterator(NumberSequenceIterator iterator)
IteratorSourceSplit
getUpdatedSplitForIterator
in interface IteratorSourceSplit<Long,NumberSequenceIterator>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.