public static class CompressedChunkReader.Standard extends CompressedChunkReader
CompressedChunkReader.Mmap, CompressedChunkReader.Standard
channel, fileLength
Constructor and Description |
---|
Standard(ChannelProxy channel,
CompressionMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
allocateBuffer() |
java.nio.ByteBuffer |
allocateBuffer(int size) |
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, close, fileLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
channel, close, fileLength
public Standard(ChannelProxy channel, CompressionMetadata metadata)
public java.nio.ByteBuffer allocateBuffer()
public java.nio.ByteBuffer allocateBuffer(int size)
public void readChunk(long position, java.nio.ByteBuffer uncompressed)
ChunkReader
Copyright © 2019 The Apache Software Foundation