public final class CompressedChecksummedDataInput extends ChecksummedDataInput
| Modifier and Type | Class and Description |
|---|---|
static class |
CompressedChecksummedDataInput.Builder |
RandomAccessReader.BufferedRandomAccessFileMark, RandomAccessReader.RandomAccessReaderWithOwnChannelDataInputPlus.DataInputStreamPlusbufferOffset, bufferSize, bufferType, channel, DEFAULT_BUFFER_SIZE, limiter, markedPointer, MAX_BUFFER_SIZE, regionsbuffer| Constructor and Description |
|---|
CompressedChecksummedDataInput(CompressedChecksummedDataInput.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
InputPosition |
getSeekPosition()
Return a seekable representation of the current position.
|
long |
getSourcePosition()
Returns the position in the source file, which is different for getPosition() for compressed/encrypted files
and may be imprecise.
|
boolean |
isEOF()
Since an entire block of compressed data is read off of disk, not just a hint at a time,
we don't report EOF until the decompressed data has also been read completely
|
protected void |
reBufferMmap() |
protected void |
reBufferStandard() |
protected void |
releaseBuffer() |
void |
seek(InputPosition p) |
static CompressedChecksummedDataInput |
upgradeInput(ChecksummedDataInput input,
ICompressor compressor) |
bytesPastLimit, checkCrc, checkLimit, limit, open, read, readFully, reBuffer, resetCrc, resetLimit, tryUncacheReadcloseallocateBuffer, available, bytesPastMark, bytesPastMark, bytesRemaining, current, getChannel, getFilePointer, getPath, getPosition, length, mark, markSupported, open, readLine, reset, reset, seek, toStringread, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readInt, readLong, readPrimitiveSlowly, readShort, readUnsignedByte, readUnsignedShort, readUnsignedVInt, readUTF, readVInt, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadUnsignedVInt, readVInt, skipBytes, skipBytesFullypublic CompressedChecksummedDataInput(CompressedChecksummedDataInput.Builder builder)
public boolean isEOF()
isEOF in interface FileDataInputisEOF in class RandomAccessReaderpublic long getSourcePosition()
ChecksummedDataInputgetSourcePosition in class ChecksummedDataInputpublic InputPosition getSeekPosition()
ChecksummedDataInputgetSeekPosition in class ChecksummedDataInputpublic void seek(InputPosition p)
seek in class ChecksummedDataInputprotected void reBufferStandard()
reBufferStandard in class RandomAccessReaderprotected void releaseBuffer()
releaseBuffer in class RandomAccessReaderprotected void reBufferMmap()
reBufferMmap in class RandomAccessReaderpublic static final CompressedChecksummedDataInput upgradeInput(ChecksummedDataInput input, ICompressor compressor)
Copyright © 2020 The Apache Software Foundation