public class Phrase2CountMap extends TreeMap<Phrase,org.apache.hadoop.io.FloatWritable> implements org.apache.hadoop.io.Writable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Phrase2CountMap() |
| Modifier and Type | Method and Description |
|---|---|
float |
getPhraseCount(Phrase key) |
void |
normalize() |
void |
plusEquals(Phrase2CountMap rhs) |
void |
readFields(DataInput in) |
void |
setPhraseCount(Phrase key,
float value) |
void |
write(DataOutput out) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmpty, toStringpublic final void plusEquals(Phrase2CountMap rhs)
public final void setPhraseCount(Phrase key, float value)
public final float getPhraseCount(Phrase key)
public void normalize()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2015. All rights reserved.