public static class CompressedChunkReader.Mmap extends CompressedChunkReader
CompressedChunkReader.Mmap, CompressedChunkReader.Standard| Modifier and Type | Field and Description |
|---|---|
protected MmappedRegions |
regions |
channel, fileLength| Constructor and Description |
|---|
Mmap(ChannelProxy channel,
CompressionMetadata metadata,
MmappedRegions regions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
readChunk(long position,
java.nio.ByteBuffer uncompressed)
Read the chunk at the given position, attempting to fill the capacity of the given buffer.
|
chunkSize, getCrcCheckChance, instantiateRebufferer, preferredBufferType, shouldCheckCrc, toStringchannel, fileLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchannel, fileLengthprotected final MmappedRegions regions
public Mmap(ChannelProxy channel, CompressionMetadata metadata, MmappedRegions regions)
public void readChunk(long position,
java.nio.ByteBuffer uncompressed)
ChunkReaderpublic void close()
close in interface java.lang.AutoCloseableclose in interface ReaderFileProxyclose in class AbstractReaderFileProxyCopyright © 2018 The Apache Software Foundation