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 SummaryConstructorsConstructorDescriptionGenericPartitionFieldSummary(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 SummaryModifier and TypeMethodDescriptionReturns true if at least one file in the manifest has a NaN value for the field.booleanReturns true if at least one file in the manifest has a null value for the field.copy()Copies thissummary.get(int i) <T> Torg.apache.avro.SchemaReturns a ByteBuffer that contains a serialized bound lower than all values of the field.void<T> voidset(int i, T value) intsize()toString()Returns a ByteBuffer that contains a serialized bound higher than all values of the field.
- 
Constructor Details- 
GenericPartitionFieldSummarypublic GenericPartitionFieldSummary(org.apache.avro.Schema avroSchema) Used by Avro reflection to instantiate this class when reading manifest files.
- 
GenericPartitionFieldSummarypublic GenericPartitionFieldSummary(boolean containsNull, boolean containsNaN, ByteBuffer lowerBound, ByteBuffer upperBound) 
 
- 
- 
Method Details- 
containsNullpublic 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 interface- ManifestFile.PartitionFieldSummary
 
- 
containsNaNDescription 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 interface- ManifestFile.PartitionFieldSummary
 
- 
lowerBoundDescription copied from interface:ManifestFile.PartitionFieldSummaryReturns a ByteBuffer that contains a serialized bound lower than all values of the field.- Specified by:
- lowerBoundin interface- ManifestFile.PartitionFieldSummary
 
- 
upperBoundDescription copied from interface:ManifestFile.PartitionFieldSummaryReturns a ByteBuffer that contains a serialized bound higher than all values of the field.- Specified by:
- upperBoundin interface- ManifestFile.PartitionFieldSummary
 
- 
sizepublic int size()- Specified by:
- sizein interface- StructLike
 
- 
get- Specified by:
- getin interface- StructLike
 
- 
get- Specified by:
- getin interface- org.apache.avro.generic.IndexedRecord
 
- 
setpublic <T> void set(int i, T value) - Specified by:
- setin interface- StructLike
 
- 
put- Specified by:
- putin interface- org.apache.avro.generic.IndexedRecord
 
- 
copyDescription copied from interface:ManifestFile.PartitionFieldSummaryCopies thissummary. Readers can reuse instances; use this method to make defensive copies.- Specified by:
- copyin interface- ManifestFile.PartitionFieldSummary
- Returns:
- a copy of this partition field summary
 
- 
getSchemapublic org.apache.avro.Schema getSchema()- Specified by:
- getSchemain interface- org.apache.avro.generic.GenericContainer
 
- 
toString
 
-