org.kitesdk.data
Class PartitionKey

java.lang.Object
  extended by org.kitesdk.data.PartitionKey

@NotThreadSafe
public class PartitionKey
extends Object

A key for retrieving partitions from a Dataset.

A PartitionKey is a ordered sequence of values corresponding to the FieldPartitioners 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.

See Also:
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

getValues

public List<Object> getValues()

get

public Object get(int index)
Return the value at the specified index in the key.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getLength

public int getLength()
Return the number of values in the key.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2014. All rights reserved.