public abstract class ColumnChunkMetaData extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
rowGroupOrdinal |
| Modifier | Constructor and Description |
|---|---|
protected |
ColumnChunkMetaData(ColumnChunkProperties columnChunkProperties) |
protected |
ColumnChunkMetaData(EncodingStats encodingStats,
ColumnChunkProperties columnChunkProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decryptIfNeeded() |
static ColumnChunkMetaData |
get(ColumnPath path,
PrimitiveType.PrimitiveTypeName type,
CompressionCodecName codec,
EncodingStats encodingStats,
Set<Encoding> encodings,
Statistics statistics,
long firstDataPage,
long dictionaryPageOffset,
long valueCount,
long totalSize,
long totalUncompressedSize)
Deprecated.
will be removed in 2.0.0. Use
get(ColumnPath, PrimitiveType, CompressionCodecName, EncodingStats, Set, Statistics, long, long, long, long, long)
instead. |
static ColumnChunkMetaData |
get(ColumnPath path,
PrimitiveType.PrimitiveTypeName type,
CompressionCodecName codec,
Set<Encoding> encodings,
long firstDataPage,
long dictionaryPageOffset,
long valueCount,
long totalSize,
long totalUncompressedSize)
Deprecated.
|
static ColumnChunkMetaData |
get(ColumnPath path,
PrimitiveType.PrimitiveTypeName type,
CompressionCodecName codec,
Set<Encoding> encodings,
Statistics statistics,
long firstDataPage,
long dictionaryPageOffset,
long valueCount,
long totalSize,
long totalUncompressedSize)
Deprecated.
|
static ColumnChunkMetaData |
get(ColumnPath path,
PrimitiveType type,
CompressionCodecName codec,
EncodingStats encodingStats,
Set<Encoding> encodings,
Statistics statistics,
long firstDataPage,
long dictionaryPageOffset,
long valueCount,
long totalSize,
long totalUncompressedSize) |
static ColumnChunkMetaData |
get(ColumnPath path,
PrimitiveType type,
CompressionCodecName codec,
EncodingStats encodingStats,
Set<Encoding> encodings,
Statistics statistics,
long firstDataPage,
long dictionaryPageOffset,
long valueCount,
long totalSize,
long totalUncompressedSize,
SizeStatistics sizeStatistics) |
int |
getBloomFilterLength() |
long |
getBloomFilterOffset() |
CompressionCodecName |
getCodec() |
IndexReference |
getColumnIndexReference()
Method should be considered private
|
abstract long |
getDictionaryPageOffset() |
Set<Encoding> |
getEncodings() |
EncodingStats |
getEncodingStats() |
abstract long |
getFirstDataPageOffset() |
IndexReference |
getOffsetIndexReference()
Method should be considered private
|
ColumnPath |
getPath() |
PrimitiveType |
getPrimitiveType() |
int |
getRowGroupOrdinal() |
SizeStatistics |
getSizeStatistics()
Method should be considered private
|
long |
getStartingPos() |
abstract Statistics |
getStatistics() |
abstract long |
getTotalSize() |
abstract long |
getTotalUncompressedSize() |
PrimitiveType.PrimitiveTypeName |
getType()
Deprecated.
will be removed in 2.0.0. Use
getPrimitiveType() instead. |
abstract long |
getValueCount() |
static ColumnChunkMetaData |
getWithEncryptedMetadata(ParquetMetadataConverter parquetMetadataConverter,
ColumnPath path,
PrimitiveType type,
byte[] encryptedMetadata,
byte[] columnKeyMetadata,
InternalFileDecryptor fileDecryptor,
int rowGroupOrdinal,
int columnOrdinal,
String createdBy) |
boolean |
hasDictionaryPage() |
boolean |
isEncrypted()
Method should be considered private
|
protected static boolean |
positiveLongFitsInAnInt(long value)
checks that a positive long value fits in an int.
|
void |
setBloomFilterLength(int bloomFilterLength) |
void |
setBloomFilterOffset(long bloomFilterOffset)
Method should be considered private
|
void |
setColumnIndexReference(IndexReference indexReference)
Method should be considered private
|
void |
setOffsetIndexReference(IndexReference offsetIndexReference)
Method should be considered private
|
void |
setRowGroupOrdinal(int rowGroupOrdinal) |
String |
toString() |
protected ColumnChunkMetaData(ColumnChunkProperties columnChunkProperties)
protected ColumnChunkMetaData(EncodingStats encodingStats, ColumnChunkProperties columnChunkProperties)
@Deprecated public static ColumnChunkMetaData get(ColumnPath path, PrimitiveType.PrimitiveTypeName type, CompressionCodecName codec, Set<Encoding> encodings, long firstDataPage, long dictionaryPageOffset, long valueCount, long totalSize, long totalUncompressedSize)
@Deprecated public static ColumnChunkMetaData get(ColumnPath path, PrimitiveType.PrimitiveTypeName type, CompressionCodecName codec, Set<Encoding> encodings, Statistics statistics, long firstDataPage, long dictionaryPageOffset, long valueCount, long totalSize, long totalUncompressedSize)
@Deprecated public static ColumnChunkMetaData get(ColumnPath path, PrimitiveType.PrimitiveTypeName type, CompressionCodecName codec, EncodingStats encodingStats, Set<Encoding> encodings, Statistics statistics, long firstDataPage, long dictionaryPageOffset, long valueCount, long totalSize, long totalUncompressedSize)
get(ColumnPath, PrimitiveType, CompressionCodecName, EncodingStats, Set, Statistics, long, long, long, long, long)
instead.path - the path of this column in the write schematype - primitive type for this columncodec - the compression codec used to compressencodingStats - EncodingStats for the encodings used in this columnencodings - a set of encoding used in this columnstatistics - statistics for the data in this columnfirstDataPage - offset of the first non-dictionary pagedictionaryPageOffset - offset of the the dictionary pagevalueCount - number of valuestotalSize - total compressed sizetotalUncompressedSize - uncompressed data sizepublic static ColumnChunkMetaData get(ColumnPath path, PrimitiveType type, CompressionCodecName codec, EncodingStats encodingStats, Set<Encoding> encodings, Statistics statistics, long firstDataPage, long dictionaryPageOffset, long valueCount, long totalSize, long totalUncompressedSize)
public static ColumnChunkMetaData get(ColumnPath path, PrimitiveType type, CompressionCodecName codec, EncodingStats encodingStats, Set<Encoding> encodings, Statistics statistics, long firstDataPage, long dictionaryPageOffset, long valueCount, long totalSize, long totalUncompressedSize, SizeStatistics sizeStatistics)
path - the path of this column in the write schematype - primitive type for this columncodec - the compression codec used to compressencodingStats - EncodingStats for the encodings used in this columnencodings - a set of encoding used in this columnstatistics - statistics for the data in this columnfirstDataPage - offset of the first non-dictionary pagedictionaryPageOffset - offset of the dictionary pagevalueCount - number of valuestotalSize - total compressed sizetotalUncompressedSize - uncompressed data sizesizeStatistics - size statistics for the data in this columnpublic static ColumnChunkMetaData getWithEncryptedMetadata(ParquetMetadataConverter parquetMetadataConverter, ColumnPath path, PrimitiveType type, byte[] encryptedMetadata, byte[] columnKeyMetadata, InternalFileDecryptor fileDecryptor, int rowGroupOrdinal, int columnOrdinal, String createdBy)
public void setRowGroupOrdinal(int rowGroupOrdinal)
public int getRowGroupOrdinal()
public long getStartingPos()
protected static boolean positiveLongFitsInAnInt(long value)
value - a long valueprotected void decryptIfNeeded()
public CompressionCodecName getCodec()
public ColumnPath getPath()
@Deprecated public PrimitiveType.PrimitiveTypeName getType()
getPrimitiveType() instead.public PrimitiveType getPrimitiveType()
public abstract long getFirstDataPageOffset()
public abstract long getDictionaryPageOffset()
0 is returned if there is no dictionary page. Check
hasDictionaryPage() to validate.public abstract long getValueCount()
public abstract long getTotalUncompressedSize()
public abstract long getTotalSize()
public abstract Statistics getStatistics()
public SizeStatistics getSizeStatistics()
public IndexReference getColumnIndexReference()
public void setColumnIndexReference(IndexReference indexReference)
indexReference - the reference to the column indexpublic IndexReference getOffsetIndexReference()
public void setOffsetIndexReference(IndexReference offsetIndexReference)
offsetIndexReference - the reference to the offset indexpublic void setBloomFilterOffset(long bloomFilterOffset)
bloomFilterOffset - the reference to the Bloom filterpublic void setBloomFilterLength(int bloomFilterLength)
bloomFilterLength - the reference to the Bloom filterpublic long getBloomFilterOffset()
-1 if there is no bloom filter for this column chunkpublic int getBloomFilterLength()
-1 if there is no bloom filter length for this column chunkpublic EncodingStats getEncodingStats()
public boolean hasDictionaryPage()
public boolean isEncrypted()
Copyright © 2023 The Apache Software Foundation. All rights reserved.