public class PartitionData extends java.lang.Object implements org.apache.avro.generic.IndexedRecord, StructLike, org.apache.avro.specific.SpecificData.SchemaConstructable, java.io.Serializable
Constructor and Description |
---|
PartitionData(Types.StructType partitionType) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
PartitionData |
copy() |
static java.lang.Object[] |
copyData(Types.StructType type,
java.lang.Object[] data) |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(int pos) |
<T> T |
get(int pos,
java.lang.Class<T> javaClass) |
Types.StructType |
getPartitionType() |
org.apache.avro.Schema |
getSchema() |
Type |
getType(int pos) |
int |
hashCode() |
void |
put(int i,
java.lang.Object v) |
<T> void |
set(int pos,
T value) |
int |
size() |
java.lang.String |
toString() |
public PartitionData(Types.StructType partitionType)
public Types.StructType getPartitionType()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Type getType(int pos)
public void clear()
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 pos)
get
in interface org.apache.avro.generic.IndexedRecord
public <T> void set(int pos, T value)
set
in interface StructLike
public void put(int i, java.lang.Object v)
put
in interface org.apache.avro.generic.IndexedRecord
public java.lang.String toString()
toString
in class java.lang.Object
public PartitionData copy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.lang.Object[] copyData(Types.StructType type, java.lang.Object[] data)