|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.util.map.HMapKF<String>
edu.umd.cloud9.io.map.HMapSFW
public class HMapSFW
Writable representing a map where keys are Strings and values are floats.
This class is specialized for String objects to avoid the overhead that comes
with wrapping Strings inside Text objects.
| Constructor Summary | |
|---|---|
HMapSFW()
Creates a HMapSFW object. |
|
| Method Summary | |
|---|---|
static HMapSFW |
create(byte[] bytes)
Creates a HMapSFW object from a byte array. |
static HMapSFW |
create(DataInput in)
Creates a HMapSFW 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.HMapKF |
|---|
clear, clone, containsKey, containsValue, dot, entrySet, get, getEntriesSortedByValue, getEntriesSortedByValue, isEmpty, keySet, length, normalize, 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.MapKF |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public HMapSFW()
HMapSFW 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 HMapSFW create(DataInput in)
throws IOException
HMapSFW object from a DataInput.
in - source for reading the serialized representation
HMapSFW object
IOException
public static HMapSFW create(byte[] bytes)
throws IOException
HMapSFW object from a byte array.
bytes - source for reading the serialized representation
HMapSFW object
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||