public class PartitionKey
extends java.lang.Object
Instances of this class can produce partition values from a data row passed to partition(StructLike)
.
Constructor and Description |
---|
PartitionKey(PartitionSpec spec,
Schema inputSchema) |
Modifier and Type | Method and Description |
---|---|
PartitionKey |
copy() |
boolean |
equals(java.lang.Object o) |
<T> T |
get(int pos,
java.lang.Class<T> javaClass) |
int |
hashCode() |
void |
partition(StructLike row)
Replace this key's partition values with the partition values for the row.
|
<T> void |
set(int pos,
T value) |
int |
size() |
java.lang.String |
toPath() |
java.lang.String |
toString() |
void |
wrap(StructLike row) |
public PartitionKey(PartitionSpec spec, Schema inputSchema)
public PartitionKey copy()
public java.lang.String toPath()
public void partition(StructLike row)
row
- a StructLike rowpublic void wrap(StructLike row)
public int size()
size
in interface StructLike
public <T> T get(int pos, java.lang.Class<T> javaClass)
get
in interface StructLike
public <T> void set(int pos, T value)
set
in interface StructLike
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object