public interface LlapDataReader extends AutoCloseable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
LlapDataReader |
clone()
Clone the entire state of the DataReader with the assumption that the
clone will be closed at a different time.
|
void |
close() |
org.apache.orc.CompressionCodec |
getCompressionCodec()
Returns the compression codec used by this datareader.
|
boolean |
isTrackingDiskRanges()
Whether the user should release buffers created by readFileData.
|
void |
open()
Opens the DataReader, making it ready to use.
|
DiskRangeList |
readFileData(DiskRangeList range,
long baseOffset,
boolean doForceDirect)
Reads the data.
|
org.apache.orc.impl.OrcIndex |
readRowIndex(org.apache.orc.StripeInformation stripe,
org.apache.orc.TypeDescription fileSchema,
org.apache.orc.OrcProto.StripeFooter footer,
boolean ignoreNonUtf8BloomFilter,
boolean[] included,
org.apache.orc.OrcProto.RowIndex[] indexes,
boolean[] sargColumns,
org.apache.orc.OrcFile.WriterVersion version,
org.apache.orc.OrcProto.Stream.Kind[] bloomFilterKinds,
org.apache.orc.OrcProto.BloomFilterIndex[] bloomFilterIndices) |
org.apache.orc.OrcProto.StripeFooter |
readStripeFooter(org.apache.orc.StripeInformation stripe) |
void |
releaseBuffer(ByteBuffer toRelease)
Releases buffers created by readFileData.
|
void open() throws IOException
IOExceptionorg.apache.orc.impl.OrcIndex readRowIndex(org.apache.orc.StripeInformation stripe,
org.apache.orc.TypeDescription fileSchema,
org.apache.orc.OrcProto.StripeFooter footer,
boolean ignoreNonUtf8BloomFilter,
boolean[] included,
org.apache.orc.OrcProto.RowIndex[] indexes,
boolean[] sargColumns,
org.apache.orc.OrcFile.WriterVersion version,
org.apache.orc.OrcProto.Stream.Kind[] bloomFilterKinds,
org.apache.orc.OrcProto.BloomFilterIndex[] bloomFilterIndices)
throws IOException
IOExceptionorg.apache.orc.OrcProto.StripeFooter readStripeFooter(org.apache.orc.StripeInformation stripe)
throws IOException
IOExceptionDiskRangeList readFileData(DiskRangeList range, long baseOffset, boolean doForceDirect) throws IOException
range - List if disk ranges to read. Ranges with data will be ignored.baseOffset - Base offset from the start of the file of the ranges in disk range list.doForceDirect - Whether the data should be read into direct buffers.IOExceptionboolean isTrackingDiskRanges()
void releaseBuffer(ByteBuffer toRelease)
toRelease - The buffer to release.LlapDataReader clone()
void close()
throws IOException
close in interface AutoCloseableIOExceptionorg.apache.orc.CompressionCodec getCompressionCodec()
Copyright © 2022 The Apache Software Foundation. All rights reserved.