Search in sources :

Example 1 with BloomFilterIndex

use of org.apache.orc.OrcProto.BloomFilterIndex in project hive by apache.

the class OrcEncodedDataReader method createOrcStripeMetadataObject.

private OrcStripeMetadata createOrcStripeMetadataObject(int stripeIx, StripeInformation si, OrcProto.StripeFooter footer, boolean[] includes, boolean[] sargColumns) throws IOException {
    Stream.Kind[] bks = sargColumns == null ? null : new Stream.Kind[includes.length];
    BloomFilterIndex[] bis = sargColumns == null ? null : new BloomFilterIndex[includes.length];
    return new OrcStripeMetadata(new OrcBatchKey(fileKey, stripeIx, 0), footer, new OrcIndex(new RowIndex[includes.length], bks, bis), si);
}
Also used : RowIndex(org.apache.orc.OrcProto.RowIndex) CalendarKind(org.apache.orc.OrcProto.CalendarKind) CompressionKind(org.apache.orc.CompressionKind) BloomFilterIndex(org.apache.orc.OrcProto.BloomFilterIndex) OrcIndex(org.apache.orc.impl.OrcIndex) Stream(org.apache.orc.OrcProto.Stream) InStream(org.apache.orc.impl.InStream) OrcBatchKey(org.apache.hadoop.hive.ql.io.orc.encoded.OrcBatchKey) OrcStripeMetadata(org.apache.hadoop.hive.llap.io.metadata.OrcStripeMetadata)

Aggregations

OrcStripeMetadata (org.apache.hadoop.hive.llap.io.metadata.OrcStripeMetadata)1 OrcBatchKey (org.apache.hadoop.hive.ql.io.orc.encoded.OrcBatchKey)1 CompressionKind (org.apache.orc.CompressionKind)1 BloomFilterIndex (org.apache.orc.OrcProto.BloomFilterIndex)1 CalendarKind (org.apache.orc.OrcProto.CalendarKind)1 RowIndex (org.apache.orc.OrcProto.RowIndex)1 Stream (org.apache.orc.OrcProto.Stream)1 InStream (org.apache.orc.impl.InStream)1 OrcIndex (org.apache.orc.impl.OrcIndex)1