|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.util.map.HMapKI<K>
edu.umd.cloud9.io.map.HMapKIW<K>
K - type of keypublic class HMapKIW<K extends WritableComparable<?>>
Writable representing a map from keys of arbitrary WritableComparable to ints.
| Field Summary |
|---|
| Fields inherited from interface edu.umd.cloud9.util.map.MapKI |
|---|
DEFAULT_VALUE |
| Constructor Summary | |
|---|---|
HMapKIW()
Creates a HMapKIW object. |
|
| Method Summary | ||
|---|---|---|
static
|
create(byte[] bytes)
Creates a HMapKIW object from a byte array. |
|
static
|
create(DataInput in)
Creates a HMapKIW object from a DataInput. |
|
void |
readFields(DataInput in)
Deserializes the map. |
|
byte[] |
serialize()
Returns the serialized representation of this object as a byte array. |
|
void |
write(DataOutput out)
Serializes the map. |
|
| Methods inherited from class edu.umd.cloud9.util.map.HMapKI |
|---|
clear, clone, containsKey, containsValue, dot, entrySet, get, getEntriesSortedByKey, getEntriesSortedByKey, getEntriesSortedByValue, getEntriesSortedByValue, increment, isEmpty, keySet, plus, put, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.umd.cloud9.util.map.MapKI |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public HMapKIW()
HMapKIW object.
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOException
public byte[] serialize()
throws IOException
IOException
public static <T extends WritableComparable<?>> HMapKIW<T> create(DataInput in)
throws IOException
HMapKIW object from a DataInput.
in - source for reading the serialized representation
HMapKIW object
IOException
public static <T extends WritableComparable<?>> HMapKIW<T> create(byte[] bytes)
throws IOException
HMapKIW object from a byte array.
bytes - source for reading the serialized representation
HMapKIW object
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||