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
| Constructor and 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.
|
| Modifier and Type | Method and 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 this
summary. |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypepublic GenericPartitionFieldSummary(org.apache.avro.Schema avroSchema)
public GenericPartitionFieldSummary(boolean containsNull,
boolean containsNaN,
java.nio.ByteBuffer lowerBound,
java.nio.ByteBuffer upperBound)
public boolean containsNull()
ManifestFile.PartitionFieldSummarycontainsNull in interface ManifestFile.PartitionFieldSummarypublic java.lang.Boolean containsNaN()
ManifestFile.PartitionFieldSummaryDefault to return null to ensure backward compatibility.
containsNaN in interface ManifestFile.PartitionFieldSummarypublic java.nio.ByteBuffer lowerBound()
ManifestFile.PartitionFieldSummarylowerBound in interface ManifestFile.PartitionFieldSummarypublic java.nio.ByteBuffer upperBound()
ManifestFile.PartitionFieldSummaryupperBound in interface ManifestFile.PartitionFieldSummarypublic int size()
size in interface StructLikepublic <T> T get(int pos,
java.lang.Class<T> javaClass)
get in interface StructLikepublic java.lang.Object get(int i)
get in interface org.apache.avro.generic.IndexedRecordpublic <T> void set(int i,
T value)
set in interface StructLikepublic void put(int i,
java.lang.Object v)
put in interface org.apache.avro.generic.IndexedRecordpublic ManifestFile.PartitionFieldSummary copy()
ManifestFile.PartitionFieldSummarysummary. Readers can reuse instances; use this
method to make defensive copies.copy in interface ManifestFile.PartitionFieldSummarypublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic java.lang.String toString()
toString in class java.lang.Object