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,
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 |
---|---|
boolean |
containsNull()
Returns true if at least one data 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, wait
getType
public GenericPartitionFieldSummary(org.apache.avro.Schema avroSchema)
public GenericPartitionFieldSummary(boolean containsNull, java.nio.ByteBuffer lowerBound, java.nio.ByteBuffer upperBound)
public boolean containsNull()
ManifestFile.PartitionFieldSummary
containsNull
in interface ManifestFile.PartitionFieldSummary
public java.nio.ByteBuffer lowerBound()
ManifestFile.PartitionFieldSummary
lowerBound
in interface ManifestFile.PartitionFieldSummary
public java.nio.ByteBuffer upperBound()
ManifestFile.PartitionFieldSummary
upperBound
in interface ManifestFile.PartitionFieldSummary
public int size()
size
in interface StructLike
public <T> T get(int pos, java.lang.Class<T> javaClass)
get
in interface StructLike
public java.lang.Object get(int i)
get
in interface org.apache.avro.generic.IndexedRecord
public <T> void set(int i, T value)
set
in interface StructLike
public void put(int i, java.lang.Object v)
put
in interface org.apache.avro.generic.IndexedRecord
public ManifestFile.PartitionFieldSummary copy()
ManifestFile.PartitionFieldSummary
summary
. Readers can reuse instances; use this
method to make defensive copies.copy
in interface ManifestFile.PartitionFieldSummary
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public java.lang.String toString()
toString
in class java.lang.Object