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
ConstructorsConstructorDescriptionGenericPartitionFieldSummary(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.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
- 
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.PartitionFieldSummaryReturns true if at least one file in the manifest has a null value for the field.- Specified by:
 containsNullin interfaceManifestFile.PartitionFieldSummary
 - 
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
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
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
- Specified by:
 getin interfaceStructLike
 - 
get
- Specified by:
 getin interfaceorg.apache.avro.generic.IndexedRecord
 - 
set
public <T> void set(int i, T value) - Specified by:
 setin interfaceStructLike
 - 
put
- Specified by:
 putin interfaceorg.apache.avro.generic.IndexedRecord
 - 
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
 
 -