public class HoodieMetadataColumnStats
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieMetadataColumnStats.Builder
RecordBuilder for HoodieMetadataColumnStats instances.
|
| Modifier and Type | Field and Description |
|---|---|
String |
columnName
Deprecated.
|
String |
fileName
Deprecated.
|
boolean |
isDeleted
Deprecated.
|
Object |
maxValue
Deprecated.
|
Object |
minValue
Deprecated.
|
Long |
nullCount
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Long |
totalSize
Deprecated.
|
Long |
totalUncompressedSize
Deprecated.
|
Long |
valueCount
Deprecated.
|
| Constructor and Description |
|---|
HoodieMetadataColumnStats()
Default constructor.
|
HoodieMetadataColumnStats(String fileName,
String columnName,
Object minValue,
Object maxValue,
Long valueCount,
Long nullCount,
Long totalSize,
Long totalUncompressedSize,
Boolean isDeleted)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<HoodieMetadataColumnStats> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static HoodieMetadataColumnStats |
fromByteBuffer(ByteBuffer b)
Deserializes a HoodieMetadataColumnStats from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
String |
getColumnName()
Gets the value of the 'columnName' field.
|
static org.apache.avro.message.BinaryMessageDecoder<HoodieMetadataColumnStats> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getFileName()
Gets the value of the 'fileName' field.
|
Boolean |
getIsDeleted()
Gets the value of the 'isDeleted' field.
|
Object |
getMaxValue()
Gets the value of the 'maxValue' field.
|
Object |
getMinValue()
Gets the value of the 'minValue' field.
|
Long |
getNullCount()
Gets the value of the 'nullCount' field.
|
org.apache.avro.Schema |
getSchema() |
Long |
getTotalSize()
Gets the value of the 'totalSize' field.
|
Long |
getTotalUncompressedSize()
Gets the value of the 'totalUncompressedSize' field.
|
Long |
getValueCount()
Gets the value of the 'valueCount' field.
|
static HoodieMetadataColumnStats.Builder |
newBuilder()
Creates a new HoodieMetadataColumnStats RecordBuilder.
|
static HoodieMetadataColumnStats.Builder |
newBuilder(HoodieMetadataColumnStats.Builder other)
Creates a new HoodieMetadataColumnStats RecordBuilder by copying an existing Builder.
|
static HoodieMetadataColumnStats.Builder |
newBuilder(HoodieMetadataColumnStats other)
Creates a new HoodieMetadataColumnStats RecordBuilder by copying an existing HoodieMetadataColumnStats instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setColumnName(String value)
Sets the value of the 'columnName' field.
|
void |
setFileName(String value)
Sets the value of the 'fileName' field.
|
void |
setIsDeleted(Boolean value)
Sets the value of the 'isDeleted' field.
|
void |
setMaxValue(Object value)
Sets the value of the 'maxValue' field.
|
void |
setMinValue(Object value)
Sets the value of the 'minValue' field.
|
void |
setNullCount(Long value)
Sets the value of the 'nullCount' field.
|
void |
setTotalSize(Long value)
Sets the value of the 'totalSize' field.
|
void |
setTotalUncompressedSize(Long value)
Sets the value of the 'totalUncompressedSize' field.
|
void |
setValueCount(Long value)
Sets the value of the 'valueCount' field.
|
ByteBuffer |
toByteBuffer()
Serializes this HoodieMetadataColumnStats to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String fileName
@Deprecated public String columnName
@Deprecated public Object minValue
@Deprecated public Object maxValue
@Deprecated public Long valueCount
@Deprecated public Long nullCount
@Deprecated public Long totalSize
@Deprecated public Long totalUncompressedSize
@Deprecated public boolean isDeleted
public HoodieMetadataColumnStats()
newBuilder().public HoodieMetadataColumnStats(String fileName, String columnName, Object minValue, Object maxValue, Long valueCount, Long nullCount, Long totalSize, Long totalUncompressedSize, Boolean isDeleted)
fileName - File name for which this column statistics appliescolumnName - Column name for which this column statistics appliesminValue - Minimum value in the range. Based on user data table schema, we can convert this to appropriate typemaxValue - Maximum value in the range. Based on user data table schema, we can convert it to appropriate typevalueCount - Total count of valuesnullCount - Total count of null valuestotalSize - Total storage size on disktotalUncompressedSize - Total uncompressed storage size on diskisDeleted - Column range entry valid/deleted flagpublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieMetadataColumnStats> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieMetadataColumnStats> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static HoodieMetadataColumnStats fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getFileName()
public void setFileName(String value)
value - the value to set.public String getColumnName()
public void setColumnName(String value)
value - the value to set.public Object getMinValue()
public void setMinValue(Object value)
value - the value to set.public Object getMaxValue()
public void setMaxValue(Object value)
value - the value to set.public Long getValueCount()
public void setValueCount(Long value)
value - the value to set.public Long getNullCount()
public void setNullCount(Long value)
value - the value to set.public Long getTotalSize()
public void setTotalSize(Long value)
value - the value to set.public Long getTotalUncompressedSize()
public void setTotalUncompressedSize(Long value)
value - the value to set.public Boolean getIsDeleted()
public void setIsDeleted(Boolean value)
value - the value to set.public static HoodieMetadataColumnStats.Builder newBuilder()
public static HoodieMetadataColumnStats.Builder newBuilder(HoodieMetadataColumnStats.Builder other)
other - The existing builder to copy.public static HoodieMetadataColumnStats.Builder newBuilder(HoodieMetadataColumnStats other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.