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.Boolean
containsNaN()
Returns true if at least one file in the manifest has a NaN value for the field.boolean
containsNull()
Returns true if at least one file in the manifest has a null value for the field.ManifestFile.PartitionFieldSummary
copy()
Copies thissummary
.java.lang.Object
get(int i)
<T> T
get(int pos, java.lang.Class<T> javaClass)
org.apache.avro.Schema
getSchema()
java.nio.ByteBuffer
lowerBound()
Returns a ByteBuffer that contains a serialized bound lower than all values of the field.void
put(int i, java.lang.Object v)
<T> void
set(int i, T value)
int
size()
java.lang.String
toString()
java.nio.ByteBuffer
upperBound()
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.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
public java.lang.Boolean 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
public java.nio.ByteBuffer 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
public java.nio.ByteBuffer 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
public <T> T get(int pos, java.lang.Class<T> javaClass)
- Specified by:
get
in interfaceStructLike
-
get
public java.lang.Object get(int i)
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
-
set
public <T> void set(int i, T value)
- Specified by:
set
in interfaceStructLike
-
put
public void put(int i, java.lang.Object v)
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
-
copy
public ManifestFile.PartitionFieldSummary 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-