public class OrcStripeMetadata extends LlapCacheableBuffer implements ConsumerStripeMetadata
IN_LIST, indexInHeap, lastUpdate, next, NOT_IN_CACHE, prev, priority
Constructor and Description |
---|
OrcStripeMetadata(OrcBatchKey stripeKey,
org.apache.orc.DataReader mr,
org.apache.orc.StripeInformation stripe,
boolean[] includes,
boolean[] sargColumns,
org.apache.orc.TypeDescription schema,
org.apache.orc.OrcFile.WriterVersion writerVersion) |
Modifier and Type | Method and Description |
---|---|
static OrcStripeMetadata |
createDummy(Object id) |
org.apache.orc.OrcProto.BloomFilterIndex[] |
getBloomFilterIndexes() |
org.apache.orc.OrcProto.Stream.Kind[] |
getBloomFilterKinds() |
List<org.apache.orc.OrcProto.ColumnEncoding> |
getEncodings() |
OrcBatchKey |
getKey() |
long |
getMemoryUsage() |
long |
getRowCount() |
org.apache.orc.OrcProto.RowIndexEntry |
getRowIndexEntry(int colIx,
int rgIx) |
org.apache.orc.OrcProto.RowIndex[] |
getRowIndexes() |
List<org.apache.orc.OrcProto.Stream> |
getStreams() |
int |
getStripeIx() |
String |
getWriterTimezone() |
boolean |
hasAllIndexes(boolean[] includes) |
protected boolean |
invalidate() |
protected boolean |
isLocked() |
void |
loadMissingIndexes(org.apache.orc.DataReader mr,
org.apache.orc.StripeInformation stripe,
boolean[] includes,
boolean[] sargColumns) |
void |
notifyEvicted(EvictionDispatcher evictionDispatcher) |
void |
resetRowIndex() |
boolean |
supportsRowIndexes() |
toString, toStringForCache
public OrcStripeMetadata(OrcBatchKey stripeKey, org.apache.orc.DataReader mr, org.apache.orc.StripeInformation stripe, boolean[] includes, boolean[] sargColumns, org.apache.orc.TypeDescription schema, org.apache.orc.OrcFile.WriterVersion writerVersion) throws IOException
IOException
public static OrcStripeMetadata createDummy(Object id)
public boolean hasAllIndexes(boolean[] includes)
public void loadMissingIndexes(org.apache.orc.DataReader mr, org.apache.orc.StripeInformation stripe, boolean[] includes, boolean[] sargColumns) throws IOException
IOException
public int getStripeIx()
getStripeIx
in interface ConsumerStripeMetadata
public org.apache.orc.OrcProto.RowIndex[] getRowIndexes()
getRowIndexes
in interface ConsumerStripeMetadata
public org.apache.orc.OrcProto.Stream.Kind[] getBloomFilterKinds()
public org.apache.orc.OrcProto.BloomFilterIndex[] getBloomFilterIndexes()
public List<org.apache.orc.OrcProto.ColumnEncoding> getEncodings()
getEncodings
in interface ConsumerStripeMetadata
public List<org.apache.orc.OrcProto.Stream> getStreams()
public String getWriterTimezone()
getWriterTimezone
in interface ConsumerStripeMetadata
public long getMemoryUsage()
getMemoryUsage
in class LlapCacheableBuffer
public void notifyEvicted(EvictionDispatcher evictionDispatcher)
notifyEvicted
in class LlapCacheableBuffer
protected boolean invalidate()
invalidate
in class LlapCacheableBuffer
protected boolean isLocked()
isLocked
in class LlapCacheableBuffer
public OrcBatchKey getKey()
public long getRowCount()
getRowCount
in interface ConsumerStripeMetadata
public void resetRowIndex()
public org.apache.orc.OrcProto.RowIndexEntry getRowIndexEntry(int colIx, int rgIx)
getRowIndexEntry
in interface ConsumerStripeMetadata
public boolean supportsRowIndexes()
supportsRowIndexes
in interface ConsumerStripeMetadata
Copyright © 2021 The Apache Software Foundation. All rights reserved.