org.apache.accumulo.core.file.blockfile.impl
public static class CachableBlockFile.Reader extends Object implements BlockFileReader
| Constructor and Description |
|---|
CachableBlockFile.Reader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dataFile,
org.apache.hadoop.conf.Configuration conf,
BlockCache data,
BlockCache index,
AccumuloConfiguration accumuloConfiguration) |
CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
AccumuloConfiguration accumuloConfiguration) |
CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
BlockCache data,
BlockCache index,
AccumuloConfiguration accumuloConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
CachableBlockFile.BlockRead |
cacheMetaBlock(String blockName,
BCFile.Reader.BlockReader _currBlock) |
void |
cacheMetaBlock(String blockName,
byte[] b) |
void |
close() |
CachableBlockFile.BlockRead |
getCachedMetaBlock(String blockName) |
CachableBlockFile.BlockRead |
getDataBlock(int blockIndex)
It is intended that once the BlockRead object is returned to the caller, that the caller will read the entire block and then call close on the BlockRead
class.
|
ABlockReader |
getDataBlock(long offset,
long compressedSize,
long rawSize) |
ABlockReader |
getMetaBlock(long offset,
long compressedSize,
long rawSize) |
CachableBlockFile.BlockRead |
getMetaBlock(String blockName)
It is intended that once the BlockRead object is returned to the caller, that the caller will read the entire block and then call close on the BlockRead
class.
|
public CachableBlockFile.Reader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dataFile,
org.apache.hadoop.conf.Configuration conf,
BlockCache data,
BlockCache index,
AccumuloConfiguration accumuloConfiguration)
throws IOException
IOExceptionpublic CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
BlockCache data,
BlockCache index,
AccumuloConfiguration accumuloConfiguration)
throws IOException
IOExceptionpublic CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
AccumuloConfiguration accumuloConfiguration)
throws IOException
IOExceptionpublic CachableBlockFile.BlockRead getCachedMetaBlock(String blockName) throws IOException
IOExceptionpublic CachableBlockFile.BlockRead cacheMetaBlock(String blockName, BCFile.Reader.BlockReader _currBlock) throws IOException
IOExceptionpublic void cacheMetaBlock(String blockName, byte[] b)
public CachableBlockFile.BlockRead getMetaBlock(String blockName) throws IOException
getMetaBlock in interface BlockFileReaderIOExceptionpublic ABlockReader getMetaBlock(long offset, long compressedSize, long rawSize) throws IOException
getMetaBlock in interface BlockFileReaderIOExceptionpublic CachableBlockFile.BlockRead getDataBlock(int blockIndex) throws IOException
getDataBlock in interface BlockFileReaderIOExceptionpublic ABlockReader getDataBlock(long offset, long compressedSize, long rawSize) throws IOException
getDataBlock in interface BlockFileReaderIOExceptionpublic void close()
throws IOException
close in interface BlockFileReaderIOExceptionCopyright © 2014 Apache Accumulo Project. All rights reserved.