|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kitesdk.data.PartitionKey
@NotThreadSafe public class PartitionKey
A key for retrieving partitions from a Dataset.
A PartitionKey is an ordered sequence of values corresponding to the
FieldPartitioners in a
PartitionStrategy. You can obtain a PartitionKey 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 Objectpublic int hashCode()
hashCode in class Objectpublic 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 | |||||||||