public static class CachableBlockFile.Reader extends Object implements Closeable
Constructor and Description |
---|
Reader(CachableBlockFile.CachableBuilder b) |
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(CachableBlockFile.CachableBuilder b)
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–2019 The Apache Software Foundation. All rights reserved.