public abstract static class CompressedSegmentedFile.CompressedChunkReader extends AbstractReaderFileProxy implements ChunkReader
channel, fileLength| Constructor and Description |
|---|
CompressedChunkReader(ChannelProxy channel,
CompressionMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alignmentRequired()
If true, positions passed to this rebufferer must be aligned to chunkSize.
|
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, fileLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadChunkchannel, close, fileLengthpublic CompressedChunkReader(ChannelProxy channel, CompressionMetadata metadata)
public double getCrcCheckChance()
ReaderFileProxygetCrcCheckChance in interface ReaderFileProxygetCrcCheckChance in class AbstractReaderFileProxypublic java.lang.String toString()
toString in class AbstractReaderFileProxypublic int chunkSize()
ChunkReaderchunkSize in interface ChunkReaderpublic boolean alignmentRequired()
ChunkReaderalignmentRequired in interface ChunkReaderpublic BufferType preferredBufferType()
ChunkReaderpreferredBufferType in interface ChunkReaderpublic Rebufferer instantiateRebufferer()
instantiateRebufferer in interface RebuffererFactoryCopyright © 2017 The Apache Software Foundation