Search in sources :

Example 1 with MapFileIterator

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);
}
Also used : CachedConfiguration(org.apache.accumulo.core.util.CachedConfiguration) Configuration(org.apache.hadoop.conf.Configuration) DefaultConfiguration(org.apache.accumulo.core.conf.DefaultConfiguration) AccumuloConfiguration(org.apache.accumulo.core.conf.AccumuloConfiguration) FileSystem(org.apache.hadoop.fs.FileSystem) MapFileIterator(org.apache.accumulo.core.iterators.system.MapFileIterator)

Example 2 with MapFileIterator

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;
}
Also used : FileSKVIterator(org.apache.accumulo.core.file.FileSKVIterator) MapFileIterator(org.apache.accumulo.core.iterators.system.MapFileIterator)

Aggregations

MapFileIterator (org.apache.accumulo.core.iterators.system.MapFileIterator)2 AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)1 DefaultConfiguration (org.apache.accumulo.core.conf.DefaultConfiguration)1 FileSKVIterator (org.apache.accumulo.core.file.FileSKVIterator)1 CachedConfiguration (org.apache.accumulo.core.util.CachedConfiguration)1 Configuration (org.apache.hadoop.conf.Configuration)1 FileSystem (org.apache.hadoop.fs.FileSystem)1