Package org.apache.iceberg
Class GenericPartitionFieldSummary
java.lang.Object
org.apache.iceberg.GenericPartitionFieldSummary
- All Implemented Interfaces:
Serializable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificData.SchemaConstructable
,ManifestFile.PartitionFieldSummary
,StructLike
public class GenericPartitionFieldSummary
extends Object
implements ManifestFile.PartitionFieldSummary, StructLike, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionGenericPartitionFieldSummary
(boolean containsNull, boolean containsNaN, ByteBuffer lowerBound, ByteBuffer upperBound) GenericPartitionFieldSummary
(org.apache.avro.Schema avroSchema) Used by Avro reflection to instantiate this class when reading manifest files. -
Method Summary
Modifier and TypeMethodDescriptionReturns true if at least one file in the manifest has a NaN value for the field.boolean
Returns true if at least one file in the manifest has a null value for the field.copy()
Copies thissummary
.get
(int i) <T> T
org.apache.avro.Schema
Returns a ByteBuffer that contains a serialized bound lower than all values of the field.void
<T> void
set
(int i, T value) int
size()
toString()
Returns a ByteBuffer that contains a serialized bound higher than all values of the field.
-
Constructor Details
-
GenericPartitionFieldSummary
public GenericPartitionFieldSummary(org.apache.avro.Schema avroSchema) Used by Avro reflection to instantiate this class when reading manifest files. -
GenericPartitionFieldSummary
public GenericPartitionFieldSummary(boolean containsNull, boolean containsNaN, ByteBuffer lowerBound, ByteBuffer upperBound)
-
-
Method Details
-
containsNull
public boolean containsNull()Description copied from interface:ManifestFile.PartitionFieldSummary
Returns true if at least one file in the manifest has a null value for the field.- Specified by:
containsNull
in interfaceManifestFile.PartitionFieldSummary
-
containsNaN
Description copied from interface:ManifestFile.PartitionFieldSummary
Returns true if at least one file in the manifest has a NaN value for the field. Null if this information doesn't exist.Default to return null to ensure backward compatibility.
- Specified by:
containsNaN
in interfaceManifestFile.PartitionFieldSummary
-
lowerBound
Description copied from interface:ManifestFile.PartitionFieldSummary
Returns a ByteBuffer that contains a serialized bound lower than all values of the field.- Specified by:
lowerBound
in interfaceManifestFile.PartitionFieldSummary
-
upperBound
Description copied from interface:ManifestFile.PartitionFieldSummary
Returns a ByteBuffer that contains a serialized bound higher than all values of the field.- Specified by:
upperBound
in interfaceManifestFile.PartitionFieldSummary
-
size
public int size()- Specified by:
size
in interfaceStructLike
-
get
- Specified by:
get
in interfaceStructLike
-
get
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
-
set
public <T> void set(int i, T value) - Specified by:
set
in interfaceStructLike
-
put
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
-
copy
Description copied from interface:ManifestFile.PartitionFieldSummary
Copies thissummary
. Readers can reuse instances; use this method to make defensive copies.- Specified by:
copy
in interfaceManifestFile.PartitionFieldSummary
- Returns:
- a copy of this partition field summary
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
-
toString
-