public class PartitionKey extends java.lang.Object implements StructLike, java.io.Serializable
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()  | 
public PartitionKey(PartitionSpec spec, Schema inputSchema)
public java.lang.String toString()
toString in class java.lang.Objectpublic PartitionKey copy()
public java.lang.String toPath()
public void partition(StructLike row)
row - a StructLike rowpublic int size()
size in interface StructLikepublic <T> T get(int pos,
                 java.lang.Class<T> javaClass)
get in interface StructLikepublic <T> void set(int pos,
                    T value)
set in interface StructLikepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object