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, toString
channel, fileLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
channel, fileLength
protected final MmappedRegions regions
public Mmap(ChannelProxy channel, CompressionMetadata metadata, MmappedRegions regions)
public void readChunk(long position, java.nio.ByteBuffer uncompressed)
ChunkReader
public void close()
close
in interface java.lang.AutoCloseable
close
in interface ReaderFileProxy
close
in class AbstractReaderFileProxy
Copyright © 2009- The Apache Software Foundation