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
IOException
public CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin, long len, org.apache.hadoop.conf.Configuration conf, BlockCache data, BlockCache index, AccumuloConfiguration accumuloConfiguration) throws IOException
IOException
public CachableBlockFile.Reader(org.apache.hadoop.fs.FSDataInputStream fsin, long len, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration) throws IOException
IOException
public CachableBlockFile.BlockRead getCachedMetaBlock(String blockName) throws IOException
IOException
public CachableBlockFile.BlockRead cacheMetaBlock(String blockName, BCFile.Reader.BlockReader _currBlock) throws IOException
IOException
public void cacheMetaBlock(String blockName, byte[] b)
public CachableBlockFile.BlockRead getMetaBlock(String blockName) throws IOException
getMetaBlock
in interface BlockFileReader
IOException
public ABlockReader getMetaBlock(long offset, long compressedSize, long rawSize) throws IOException
getMetaBlock
in interface BlockFileReader
IOException
public CachableBlockFile.BlockRead getDataBlock(int blockIndex) throws IOException
getDataBlock
in interface BlockFileReader
IOException
public ABlockReader getDataBlock(long offset, long compressedSize, long rawSize) throws IOException
getDataBlock
in interface BlockFileReader
IOException
public void close() throws IOException
close
in interface BlockFileReader
IOException
Copyright © 2015 Apache Accumulo Project. All rights reserved.