java.lang.Object
com.pervasive.datarush.io.SingleSplitIterator
- All Implemented Interfaces:
SplitIterator
A split iterator containing a single split.
-
Constructor Summary
ConstructorsConstructorDescriptionSingleSplitIterator(DataSplit split) Creates an iterator returning only the specified split with no locality data.SingleSplitIterator(DataSplit split, List<String> locality) Creates an iterator returning only the specified split and locality data. -
Method Summary
-
Constructor Details
-
SingleSplitIterator
Creates an iterator returning only the specified split with no locality data.- Parameters:
split- the split to return
-
SingleSplitIterator
Creates an iterator returning only the specified split and locality data.- Parameters:
split- the split to returnlocality- locality data for the split
-
-
Method Details
-
next
public boolean next()Description copied from interface:SplitIteratorAdvance to the next data split in the iterated set.- Specified by:
nextin interfaceSplitIterator- Returns:
trueif there is another split, otherwisefalse.
-
getSplit
Description copied from interface:SplitIteratorGet the current split in the iterated set.- Specified by:
getSplitin interfaceSplitIterator- Returns:
- the split currently selected
-
getLocalityInfo
Description copied from interface:SplitIteratorGet the list of machines for which access to the current split is local. An empty list indicates the split is local to no node (or all nodes).- Specified by:
getLocalityInfoin interfaceSplitIterator- Returns:
- the machines where the currently selected split is local. If the split is local to no machine (or to all), this list is empty.
-