public class SingleSplitIterator extends Object implements SplitIterator
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getLocalityInfo()
Get the list of machines for which access to the current
split is local.
|
DataSplit |
getSplit()
Get the current split in the iterated set.
|
boolean |
next()
Advance to the next data split in the iterated set.
|
public SingleSplitIterator(DataSplit split)
split
- the split to returnpublic boolean next()
SplitIterator
next
in interface SplitIterator
true
if there is another split,
otherwise false
.public DataSplit getSplit()
SplitIterator
getSplit
in interface SplitIterator
public List<String> getLocalityInfo()
SplitIterator
getLocalityInfo
in interface SplitIterator
Copyright © 2016 Actian Corporation. All rights reserved.