public abstract class CompressedChunkReader extends AbstractReaderFileProxy implements ChunkReader
Modifier and Type | Class and Description |
---|---|
static class |
CompressedChunkReader.Mmap |
static class |
CompressedChunkReader.Standard |
channel, fileLength
Modifier | Constructor and Description |
---|---|
protected |
CompressedChunkReader(ChannelProxy channel,
CompressionMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
int |
chunkSize()
Buffer size required for this rebufferer.
|
double |
getCrcCheckChance()
Needed for tests.
|
Rebufferer |
instantiateRebufferer() |
BufferType |
preferredBufferType()
Specifies type of buffer the caller should attempt to give.
|
java.lang.String |
toString() |
channel, close, fileLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readChunk
channel, close, fileLength
protected CompressedChunkReader(ChannelProxy channel, CompressionMetadata metadata)
public double getCrcCheckChance()
ReaderFileProxy
getCrcCheckChance
in interface ReaderFileProxy
getCrcCheckChance
in class AbstractReaderFileProxy
public java.lang.String toString()
toString
in class AbstractReaderFileProxy
public int chunkSize()
ChunkReader
chunkSize
in interface ChunkReader
public BufferType preferredBufferType()
ChunkReader
preferredBufferType
in interface ChunkReader
public Rebufferer instantiateRebufferer()
instantiateRebufferer
in interface RebuffererFactory
Copyright © 2009-2021 The Apache Software Foundation