public static class Metadata_V2.ColumnMetadata_v2 extends MetadataBase.ColumnMetadata
Modifier and Type | Class and Description |
---|---|
static class |
Metadata_V2.ColumnMetadata_v2.DeSerializer |
static class |
Metadata_V2.ColumnMetadata_v2.Serializer |
Modifier and Type | Field and Description |
---|---|
Object |
mxValue |
String[] |
name |
Long |
nulls |
Constructor and Description |
---|
ColumnMetadata_v2() |
ColumnMetadata_v2(String[] name,
org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName primitiveType,
Object mxValue,
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 mxValue)
Set the max value recorded in the parquet metadata statistics.
|
void |
setMin(Object newMin)
Set the min value recorded in the parquet metadata statistics.
|
isNumNullsSet
public void setMax(Object mxValue)
MetadataBase.ColumnMetadata
setMax
in class MetadataBase.ColumnMetadata
public String[] getName()
getName
in class MetadataBase.ColumnMetadata
public Long getNulls()
getNulls
in class MetadataBase.ColumnMetadata
public boolean hasSingleValue(long rowCount)
true
if mxValue
is not null
and nulls count is 0 or if nulls count is equal to the rows count.
Comparison of nulls and rows count is needed for the cases:
hasSingleValue
in class MetadataBase.ColumnMetadata
rowCount
- rows count in column chunkpublic Object getMinValue()
getMinValue
in class MetadataBase.ColumnMetadata
public Object getMaxValue()
getMaxValue
in class MetadataBase.ColumnMetadata
public void setMin(Object newMin)
MetadataBase.ColumnMetadata
setMin
in class MetadataBase.ColumnMetadata
public org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName getPrimitiveType()
getPrimitiveType
in class MetadataBase.ColumnMetadata
public org.apache.parquet.schema.OriginalType getOriginalType()
getOriginalType
in class MetadataBase.ColumnMetadata
Copyright © 1970 The Apache Software Foundation. All rights reserved.