|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kitesdk.data.PartitionKey
@NotThreadSafe public class PartitionKey
A key for retrieving partitions from a Dataset
.
A PartitionKey
is a ordered sequence of values corresponding to the
FieldPartitioner
s in a PartitionStrategy
. A
PartitionKey
may be obtained using
PartitionStrategy.partitionKey(Object...)
or
PartitionStrategy.partitionKeyForEntity(Object)
.
Implementations of PartitionKey
are typically not thread-safe; that is,
the behavior when accessing a single instance from multiple threads is undefined.
PartitionStrategy
,
FieldPartitioner
,
Dataset
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Object |
get(int index)
Return the value at the specified index in the key. |
int |
getLength()
Return the number of values in the key. |
List<Object> |
getValues()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public List<Object> getValues()
public Object get(int index)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getLength()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |