use of org.apache.accumulo.core.iterators.system.MapFileIterator in project accumulo by apache.
the class DefaultIteratorEnvironment method reserveMapFileReader.
@Override
public SortedKeyValueIterator<Key, Value> reserveMapFileReader(String mapFileName) throws IOException {
Configuration conf = CachedConfiguration.getInstance();
FileSystem fs = FileSystem.get(conf);
return new MapFileIterator(this.conf, fs, mapFileName, conf);
}
use of org.apache.accumulo.core.iterators.system.MapFileIterator in project accumulo by apache.
the class MapFileOperations method openScanReader.
@Override
protected FileSKVIterator openScanReader(OpenScanReaderOperation options) throws IOException {
MapFileIterator mfIter = new MapFileIterator(options.getTableConfiguration(), options.getFileSystem(), options.getFilename(), options.getConfiguration());
FileSKVIterator iter = new RangeIterator(mfIter);
iter.seek(options.getRange(), options.getColumnFamilies(), options.isRangeInclusive());
return iter;
}
Aggregations