- java.lang.Object
- 
- com.pervasive.datarush.io.SingleSplitIterator
 
- 
- All Implemented Interfaces:
- SplitIterator
 
 public class SingleSplitIterator extends Object implements SplitIterator A split iterator containing a single split.
- 
- 
Constructor SummaryConstructors Constructor Description SingleSplitIterator(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getLocalityInfo()Get the list of machines for which access to the current split is local.DataSplitgetSplit()Get the current split in the iterated set.booleannext()Advance to the next data split in the iterated set.
 
- 
- 
- 
Constructor Detail- 
SingleSplitIteratorpublic SingleSplitIterator(DataSplit split) Creates an iterator returning only the specified split with no locality data.- Parameters:
- split- the split to return
 
 
- 
 - 
Method Detail- 
nextpublic boolean next() Description copied from interface:SplitIteratorAdvance to the next data split in the iterated set.- Specified by:
- nextin interface- SplitIterator
- Returns:
- trueif there is another split, otherwise- false.
 
 - 
getSplitpublic DataSplit getSplit() Description copied from interface:SplitIteratorGet the current split in the iterated set.- Specified by:
- getSplitin interface- SplitIterator
- Returns:
- the split currently selected
 
 - 
getLocalityInfopublic List<String> 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 interface- SplitIterator
- 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.
 
 
- 
 
-