cgl.imr.base
Interface Key

All Superinterfaces:
TwisterConstants, TwisterSerializable
All Known Implementing Classes:
IntKey, LongKey, StringKey

public interface Key
extends TwisterSerializable, TwisterConstants

Interface for Keys used for MapReduce computations. The key should be comparable and serializable in order for it to be used in the framework.


Nested Class Summary
 
Nested classes/interfaces inherited from interface cgl.imr.base.TwisterConstants
TwisterConstants.JobState
 
Field Summary
 
Fields inherited from interface cgl.imr.base.TwisterConstants
COMBINE_INPUT, COMBINE_TOPIC_BASE, DIR_LIST_REQ, DIR_LIST_RES, FAILED, FIXED_DATA_FILE, FIXED_DATA_MODEL, HEP_DATA_STRING, MAP_ITERATIONS_OVER, MAP_REDUCE_TOPIC_BASE, MAP_TASK, MAP_TASK_REQUEST, MAP_WORKER_STARTED, MAPPER_REQUEST, MONITOR_REQUEST, MONITOR_RESPONSE, MONITOR_SLEEP_TIME, NEW_JOB_REQUEST, NEW_JOB_RESPONSE, NUM_MAP_TASKS, NUM_REDUCE_TASKS, PARTITION_FILE_RESPONSE_TOPIC_BASE, PARTITION_FILE_SPLIT_PATTERN, PROPERTIES_FILE, REDUCE_INPUT, REDUCE_RESPONSE, REDUCE_TASK, REDUCE_TASK_REQUEST, REDUCE_TOPIC_BASE, REDUCE_WORKER_REQUEST, RESPONSE_TOPIC_BASE, SEND_RECV_MAX_SLEEP_TIME, SEND_RECV_SLEEP_TIME, SUCCESS, TASK_STATUS, WORKER_RESPONSE
 
Method Summary
 boolean equals(Object key)
          Use to compare the keys.
 int hashCode()
          Returns the hash code associated with this key.
 
Methods inherited from interface cgl.imr.base.TwisterSerializable
fromBytes, getBytes
 

Method Detail

equals

boolean equals(Object key)
Use to compare the keys.

Overrides:
equals in class Object
Parameters:
key - Another key.
Returns:
boolean equality check.

hashCode

int hashCode()
Returns the hash code associated with this key.

Overrides:
hashCode in class Object
Returns:
hashcode.


For comments and suggestions please send e-mail to