org.apache.hadoop.record.meta
Class MapTypeID
java.lang.Object
org.apache.hadoop.record.meta.TypeID
org.apache.hadoop.record.meta.MapTypeID
public class MapTypeID
- extends TypeID
Represents typeID for a Map
Method Summary |
boolean |
equals(Object o)
Two map typeIDs are equal if their constituent elements have the
same type |
TypeID |
getKeyTypeID()
get the TypeID of the map's key element |
TypeID |
getValueTypeID()
get the TypeID of the map's value element |
int |
hashCode()
We use a basic hashcode implementation, since this class will likely not
be used as a hashmap key |
MapTypeID
public MapTypeID(TypeID typeIDKey,
TypeID typeIDValue)
getKeyTypeID
public TypeID getKeyTypeID()
- get the TypeID of the map's key element
getValueTypeID
public TypeID getValueTypeID()
- get the TypeID of the map's value element
equals
public boolean equals(Object o)
- Two map typeIDs are equal if their constituent elements have the
same type
- Overrides:
equals
in class TypeID
hashCode
public int hashCode()
- We use a basic hashcode implementation, since this class will likely not
be used as a hashmap key
- Overrides:
hashCode
in class TypeID
Copyright © 2009 The Apache Software Foundation