K - type of keypublic class HMapKIW<K extends org.apache.hadoop.io.WritableComparable<?>> extends HMapKI<K> implements org.apache.hadoop.io.Writable
DEFAULT_VALUE| Constructor and Description |
|---|
HMapKIW()
Creates a
HMapKIW object. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends org.apache.hadoop.io.WritableComparable<?>> |
create(byte[] bytes)
Creates a
HMapKIW object from a byte array. |
static <T extends org.apache.hadoop.io.WritableComparable<?>> |
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.
|
clear, clone, containsKey, containsValue, dot, entrySet, get, getEntriesSortedByKey, getEntriesSortedByKey, getEntriesSortedByValue, getEntriesSortedByValue, increment, increment, isEmpty, keySet, plus, put, putAll, remove, size, toString, valuespublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.Writablein - source for raw byte representationIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.Writableout - where to write the raw byte representationIOExceptionpublic byte[] serialize()
throws IOException
IOExceptionpublic static <T extends org.apache.hadoop.io.WritableComparable<?>> HMapKIW<T> create(DataInput in) throws IOException
HMapKIW object from a DataInput.in - source for reading the serialized representationHMapKIW objectIOExceptionpublic static <T extends org.apache.hadoop.io.WritableComparable<?>> HMapKIW<T> create(byte[] bytes) throws IOException
HMapKIW object from a byte array.bytes - source for reading the serialized representationHMapKIW objectIOExceptionCopyright © 2018. All rights reserved.