org.apache.accumulo.core.file.map
Class MapFileOperations

java.lang.Object
  extended by org.apache.accumulo.core.file.FileOperations
      extended by org.apache.accumulo.core.file.map.MapFileOperations

public class MapFileOperations
extends FileOperations


Nested Class Summary
static class MapFileOperations.RangeIterator
           
 
Constructor Summary
MapFileOperations()
           
 
Method Summary
 long getFileSize(String file, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
           
 FileSKVIterator openIndex(String file, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
           
 FileSKVIterator openIndex(String file, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf, BlockCache dCache, BlockCache iCache)
           
 FileSKVIterator openReader(String file, boolean seekToBeginning, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
          Open a reader that fully support seeking and also enable any optimizations related to seeking, like bloom filters.
 FileSKVIterator openReader(String file, boolean seekToBeginning, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf, BlockCache dataCache, BlockCache indexCache)
           
 FileSKVIterator openReader(String file, Range range, Set<ByteSequence> columnFamilies, boolean inclusive, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration tableConf)
          Open a reader that will not be seeked giving an initial seek location.
 FileSKVIterator openReader(String file, Range range, Set<ByteSequence> columnFamilies, boolean inclusive, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration tableConf, BlockCache dataCache, BlockCache indexCache)
           
 FileSKVWriter openWriter(String file, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf)
           
 
Methods inherited from class org.apache.accumulo.core.file.FileOperations
getInstance, getNewFileExtension, getValidExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFileOperations

public MapFileOperations()
Method Detail

openReader

public FileSKVIterator openReader(String file,
                                  boolean seekToBeginning,
                                  org.apache.hadoop.fs.FileSystem fs,
                                  org.apache.hadoop.conf.Configuration conf,
                                  AccumuloConfiguration acuconf)
                           throws IOException
Description copied from class: FileOperations
Open a reader that fully support seeking and also enable any optimizations related to seeking, like bloom filters.

Specified by:
openReader in class FileOperations
Throws:
IOException

openWriter

public FileSKVWriter openWriter(String file,
                                org.apache.hadoop.fs.FileSystem fs,
                                org.apache.hadoop.conf.Configuration conf,
                                AccumuloConfiguration acuconf)
                         throws IOException
Specified by:
openWriter in class FileOperations
Throws:
IOException

openIndex

public FileSKVIterator openIndex(String file,
                                 org.apache.hadoop.fs.FileSystem fs,
                                 org.apache.hadoop.conf.Configuration conf,
                                 AccumuloConfiguration acuconf)
                          throws IOException
Specified by:
openIndex in class FileOperations
Throws:
IOException

getFileSize

public long getFileSize(String file,
                        org.apache.hadoop.fs.FileSystem fs,
                        org.apache.hadoop.conf.Configuration conf,
                        AccumuloConfiguration acuconf)
                 throws IOException
Specified by:
getFileSize in class FileOperations
Throws:
IOException

openReader

public FileSKVIterator openReader(String file,
                                  Range range,
                                  Set<ByteSequence> columnFamilies,
                                  boolean inclusive,
                                  org.apache.hadoop.fs.FileSystem fs,
                                  org.apache.hadoop.conf.Configuration conf,
                                  AccumuloConfiguration tableConf)
                           throws IOException
Description copied from class: FileOperations
Open a reader that will not be seeked giving an initial seek location. This is useful for file operations that only need to scan data within a range and do not need to seek. Therefore file metadata such as indexes does not need to be kept in memory while the file is scanned. Also seek optimizations like bloom filters do not need to be loaded.

Specified by:
openReader in class FileOperations
Throws:
IOException

openReader

public FileSKVIterator openReader(String file,
                                  Range range,
                                  Set<ByteSequence> columnFamilies,
                                  boolean inclusive,
                                  org.apache.hadoop.fs.FileSystem fs,
                                  org.apache.hadoop.conf.Configuration conf,
                                  AccumuloConfiguration tableConf,
                                  BlockCache dataCache,
                                  BlockCache indexCache)
                           throws IOException
Specified by:
openReader in class FileOperations
Throws:
IOException

openReader

public FileSKVIterator openReader(String file,
                                  boolean seekToBeginning,
                                  org.apache.hadoop.fs.FileSystem fs,
                                  org.apache.hadoop.conf.Configuration conf,
                                  AccumuloConfiguration acuconf,
                                  BlockCache dataCache,
                                  BlockCache indexCache)
                           throws IOException
Specified by:
openReader in class FileOperations
Throws:
IOException

openIndex

public FileSKVIterator openIndex(String file,
                                 org.apache.hadoop.fs.FileSystem fs,
                                 org.apache.hadoop.conf.Configuration conf,
                                 AccumuloConfiguration acuconf,
                                 BlockCache dCache,
                                 BlockCache iCache)
                          throws IOException
Specified by:
openIndex in class FileOperations
Throws:
IOException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.