public static class Metadata_V3.ColumnMetadata_v3 extends MetadataBase.ColumnMetadata
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata_V3.ColumnMetadata_v3.Serializer |
| Modifier and Type | Field and Description |
|---|---|
Object |
maxValue |
Object |
minValue |
String[] |
name |
Long |
nulls |
| Constructor and Description |
|---|
ColumnMetadata_v3() |
ColumnMetadata_v3(String[] name,
org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName primitiveType,
Object minValue,
Object maxValue,
Long nulls) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getMaxValue() |
Object |
getMinValue() |
String[] |
getName() |
Long |
getNulls() |
org.apache.parquet.schema.OriginalType |
getOriginalType() |
org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName |
getPrimitiveType() |
boolean |
hasSingleValue(long rowCount)
Checks that the column chunk has a single value.
|
void |
setMax(Object maxValue)
Set the max value recorded in the parquet metadata statistics.
|
void |
setMin(Object minValue)
Set the min value recorded in the parquet metadata statistics.
|
isNumNullsSetpublic String[] name
public Long nulls
public Object minValue
public Object maxValue
public void setMin(Object minValue)
MetadataBase.ColumnMetadatasetMin in class MetadataBase.ColumnMetadatapublic void setMax(Object maxValue)
MetadataBase.ColumnMetadatasetMax in class MetadataBase.ColumnMetadatapublic String[] getName()
getName in class MetadataBase.ColumnMetadatapublic Long getNulls()
getNulls in class MetadataBase.ColumnMetadatapublic boolean hasSingleValue(long rowCount)
true if minValue and maxValue are the same but not null
and nulls count is 0 or equal to the rows count.
Returns true if minValue and maxValue are null and the number of null values
in the column chunk is equal to the rows count.
Comparison of nulls and rows count is needed for the cases:
hasSingleValue in class MetadataBase.ColumnMetadatarowCount - rows count in column chunkpublic Object getMinValue()
getMinValue in class MetadataBase.ColumnMetadatapublic Object getMaxValue()
getMaxValue in class MetadataBase.ColumnMetadatapublic org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName getPrimitiveType()
getPrimitiveType in class MetadataBase.ColumnMetadatapublic org.apache.parquet.schema.OriginalType getOriginalType()
getOriginalType in class MetadataBase.ColumnMetadataCopyright © 2021 The Apache Software Foundation. All rights reserved.