public static class CachableBlockFile.Reader extends Object implements Closeable
Constructor and Description |
---|
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,
CryptoService cryptoService) |
Reader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path dataFile,
org.apache.hadoop.conf.Configuration conf,
com.google.common.cache.Cache<String,Long> fileLenCache,
BlockCache data,
BlockCache index,
RateLimiter readLimiter,
AccumuloConfiguration accumuloConfiguration,
CryptoService cryptoService) |
Reader(InputStreamType fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
AccumuloConfiguration accumuloConfiguration,
CryptoService cryptoService) |
Reader(String cacheId,
InputStreamType fsin,
long len,
org.apache.hadoop.conf.Configuration conf,
BlockCache data,
BlockCache index,
AccumuloConfiguration accumuloConfiguration,
CryptoService cryptoService) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CachableBlockFile.CachedBlockRead |
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.
|
CachableBlockFile.CachedBlockRead |
getDataBlock(long offset,
long compressedSize,
long rawSize) |
CachableBlockFile.CachedBlockRead |
getMetaBlock(long offset,
long compressedSize,
long rawSize) |
CachableBlockFile.CachedBlockRead |
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 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, CryptoService cryptoService) throws IOException
IOException
public Reader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dataFile, org.apache.hadoop.conf.Configuration conf, com.google.common.cache.Cache<String,Long> fileLenCache, BlockCache data, BlockCache index, RateLimiter readLimiter, AccumuloConfiguration accumuloConfiguration, CryptoService cryptoService) throws IOException
IOException
public Reader(String cacheId, InputStreamType fsin, long len, org.apache.hadoop.conf.Configuration conf, BlockCache data, BlockCache index, AccumuloConfiguration accumuloConfiguration, CryptoService cryptoService) throws IOException
IOException
public Reader(InputStreamType fsin, long len, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration, CryptoService cryptoService) throws IOException
IOException
public CachableBlockFile.CachedBlockRead getMetaBlock(String blockName) throws IOException
IOException
public CachableBlockFile.CachedBlockRead getMetaBlock(long offset, long compressedSize, long rawSize) throws IOException
IOException
public CachableBlockFile.CachedBlockRead getDataBlock(int blockIndex) throws IOException
IOException
public CachableBlockFile.CachedBlockRead getDataBlock(long offset, long compressedSize, long rawSize) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.