public final class OrcFileMetadata extends LlapCacheableBuffer implements org.apache.orc.FileMetadata, ConsumerFileMetadata
IN_LIST, indexInHeap, lastUpdate, next, NOT_IN_CACHE, prev, priority
Constructor and Description |
---|
OrcFileMetadata(Object fileKey,
Reader reader) |
Modifier and Type | Method and Description |
---|---|
static OrcFileMetadata |
createDummy(Object fileKey) |
int |
getColumnCount() |
int |
getCompressionBufferSize() |
org.apache.orc.CompressionKind |
getCompressionKind() |
long |
getContentLength() |
Object |
getFileKey() |
List<org.apache.orc.OrcProto.ColumnStatistics> |
getFileStats() |
int |
getFlattenedColumnCount() |
long |
getMemoryUsage() |
int |
getMetadataSize() |
long |
getNumberOfRows() |
int |
getRowIndexStride() |
org.apache.orc.TypeDescription |
getSchema() |
int |
getStripeCount() |
List<org.apache.orc.StripeInformation> |
getStripes() |
List<org.apache.orc.OrcProto.StripeStatistics> |
getStripeStats() |
List<org.apache.orc.OrcProto.Type> |
getTypes() |
List<Integer> |
getVersionList() |
int |
getWriterVersionNum() |
protected boolean |
invalidate() |
protected boolean |
isLocked() |
boolean |
isOriginalFormat() |
void |
notifyEvicted(EvictionDispatcher evictionDispatcher) |
toString, toStringForCache
public static OrcFileMetadata createDummy(Object fileKey)
public void notifyEvicted(EvictionDispatcher evictionDispatcher)
notifyEvicted
in class LlapCacheableBuffer
protected boolean invalidate()
invalidate
in class LlapCacheableBuffer
public long getMemoryUsage()
getMemoryUsage
in class LlapCacheableBuffer
protected boolean isLocked()
isLocked
in class LlapCacheableBuffer
public List<org.apache.orc.OrcProto.Type> getTypes()
getTypes
in interface ConsumerFileMetadata
getTypes
in interface org.apache.orc.FileMetadata
public boolean isOriginalFormat()
isOriginalFormat
in interface org.apache.orc.FileMetadata
public List<org.apache.orc.StripeInformation> getStripes()
getStripes
in interface org.apache.orc.FileMetadata
public org.apache.orc.CompressionKind getCompressionKind()
getCompressionKind
in interface ConsumerFileMetadata
getCompressionKind
in interface org.apache.orc.FileMetadata
public int getCompressionBufferSize()
getCompressionBufferSize
in interface org.apache.orc.FileMetadata
public int getRowIndexStride()
getRowIndexStride
in interface org.apache.orc.FileMetadata
public int getColumnCount()
getColumnCount
in interface org.apache.orc.FileMetadata
public int getFlattenedColumnCount()
getFlattenedColumnCount
in interface org.apache.orc.FileMetadata
public Object getFileKey()
getFileKey
in interface org.apache.orc.FileMetadata
public List<Integer> getVersionList()
getVersionList
in interface org.apache.orc.FileMetadata
public int getMetadataSize()
getMetadataSize
in interface org.apache.orc.FileMetadata
public int getWriterVersionNum()
getWriterVersionNum
in interface org.apache.orc.FileMetadata
public List<org.apache.orc.OrcProto.StripeStatistics> getStripeStats()
getStripeStats
in interface org.apache.orc.FileMetadata
public long getContentLength()
getContentLength
in interface org.apache.orc.FileMetadata
public long getNumberOfRows()
getNumberOfRows
in interface org.apache.orc.FileMetadata
public List<org.apache.orc.OrcProto.ColumnStatistics> getFileStats()
getFileStats
in interface org.apache.orc.FileMetadata
public int getStripeCount()
getStripeCount
in interface ConsumerFileMetadata
public org.apache.orc.TypeDescription getSchema()
getSchema
in interface ConsumerFileMetadata
Copyright © 2021 The Apache Software Foundation. All rights reserved.