Package org.apache.iceberg
Class GenericPartitionFieldSummary
- java.lang.Object
-
- org.apache.iceberg.GenericPartitionFieldSummary
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificData.SchemaConstructable,ManifestFile.PartitionFieldSummary,StructLike
public class GenericPartitionFieldSummary extends java.lang.Object implements ManifestFile.PartitionFieldSummary, StructLike, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericPartitionFieldSummary(boolean containsNull, boolean containsNaN, java.nio.ByteBuffer lowerBound, java.nio.ByteBuffer upperBound)GenericPartitionFieldSummary(org.apache.avro.Schema avroSchema)Used by Avro reflection to instantiate this class when reading manifest files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleancontainsNaN()Returns true if at least one file in the manifest has a NaN value for the field.booleancontainsNull()Returns true if at least one file in the manifest has a null value for the field.ManifestFile.PartitionFieldSummarycopy()Copies thissummary.java.lang.Objectget(int i)<T> Tget(int pos, java.lang.Class<T> javaClass)org.apache.avro.SchemagetSchema()java.nio.ByteBufferlowerBound()Returns a ByteBuffer that contains a serialized bound lower than all values of the field.voidput(int i, java.lang.Object v)<T> voidset(int i, T value)intsize()java.lang.StringtoString()java.nio.ByteBufferupperBound()Returns a ByteBuffer that contains a serialized bound higher than all values of the field.
-
-
-
Constructor Detail
-
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, java.nio.ByteBuffer lowerBound, java.nio.ByteBuffer upperBound)
-
-
Method Detail
-
containsNull
public boolean containsNull()
Description copied from interface:ManifestFile.PartitionFieldSummaryReturns true if at least one file in the manifest has a null value for the field.- Specified by:
containsNullin interfaceManifestFile.PartitionFieldSummary
-
containsNaN
public java.lang.Boolean containsNaN()
Description copied from interface:ManifestFile.PartitionFieldSummaryReturns 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:
containsNaNin interfaceManifestFile.PartitionFieldSummary
-
lowerBound
public java.nio.ByteBuffer lowerBound()
Description copied from interface:ManifestFile.PartitionFieldSummaryReturns a ByteBuffer that contains a serialized bound lower than all values of the field.- Specified by:
lowerBoundin interfaceManifestFile.PartitionFieldSummary
-
upperBound
public java.nio.ByteBuffer upperBound()
Description copied from interface:ManifestFile.PartitionFieldSummaryReturns a ByteBuffer that contains a serialized bound higher than all values of the field.- Specified by:
upperBoundin interfaceManifestFile.PartitionFieldSummary
-
size
public int size()
- Specified by:
sizein interfaceStructLike
-
get
public <T> T get(int pos, java.lang.Class<T> javaClass)- Specified by:
getin interfaceStructLike
-
get
public java.lang.Object get(int i)
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
set
public <T> void set(int i, T value)- Specified by:
setin interfaceStructLike
-
put
public void put(int i, java.lang.Object v)- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
copy
public ManifestFile.PartitionFieldSummary copy()
Description copied from interface:ManifestFile.PartitionFieldSummaryCopies thissummary. Readers can reuse instances; use this method to make defensive copies.- Specified by:
copyin interfaceManifestFile.PartitionFieldSummary- Returns:
- a copy of this partition field summary
-
getSchema
public org.apache.avro.Schema getSchema()
- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-