public interface EncodedReader
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader.
|
void |
readEncodedColumns(int stripeIx,
org.apache.orc.StripeInformation stripe,
org.apache.orc.OrcProto.RowIndex[] index,
List<org.apache.orc.OrcProto.ColumnEncoding> encodings,
List<org.apache.orc.OrcProto.Stream> streams,
boolean[] physicalFileIncludes,
boolean[] rgs,
Consumer<Reader.OrcEncodedColumnBatch> consumer)
Reads encoded data from ORC file.
|
void |
readIndexStreams(org.apache.orc.impl.OrcIndex index,
org.apache.orc.StripeInformation stripe,
List<org.apache.orc.OrcProto.Stream> streams,
boolean[] included,
boolean[] sargColumns)
Read the indexes from ORC file.
|
void |
setTracing(boolean isEnabled)
Controls the low-level debug tracing.
|
void readEncodedColumns(int stripeIx,
org.apache.orc.StripeInformation stripe,
org.apache.orc.OrcProto.RowIndex[] index,
List<org.apache.orc.OrcProto.ColumnEncoding> encodings,
List<org.apache.orc.OrcProto.Stream> streams,
boolean[] physicalFileIncludes,
boolean[] rgs,
Consumer<Reader.OrcEncodedColumnBatch> consumer)
throws IOException
stripeIx - Index of the stripe to read.stripe - Externally provided metadata (from metadata reader or external cache).index - Externally provided metadata (from metadata reader or external cache).encodings - Externally provided metadata (from metadata reader or external cache).streams - Externally provided metadata (from metadata reader or external cache).physicalFileIncludes - The array of booleans indicating whether each column should be read.colRgs - Arrays of rgs, per column set to true in included, that are to be read.
null in each respective position means all rgs for this column need to be read.consumer - The sink for data that has been read.IOExceptionvoid close()
throws IOException
IOExceptionvoid setTracing(boolean isEnabled)
void readIndexStreams(org.apache.orc.impl.OrcIndex index,
org.apache.orc.StripeInformation stripe,
List<org.apache.orc.OrcProto.Stream> streams,
boolean[] included,
boolean[] sargColumns)
throws IOException
index - The destination with pre-allocated arrays to put index data into.stripe - Externally provided metadata (from metadata reader or external cache).streams - Externally provided metadata (from metadata reader or external cache).included - The array of booleans indicating whether each column should be read.sargColumns - The array of booleans indicating whether each column's
bloom filters should be read.IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.