edu.umd.hooka
Class Phrase2CountMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<Phrase,FloatWritable>
edu.umd.hooka.Phrase2CountMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Phrase,FloatWritable>, NavigableMap<Phrase,FloatWritable>, SortedMap<Phrase,FloatWritable>, Writable
public class Phrase2CountMap
- extends TreeMap<Phrase,FloatWritable>
- implements Writable
- See Also:
- Serialized Form
| Methods inherited from class java.util.TreeMap |
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, values |
Phrase2CountMap
public Phrase2CountMap()
plusEquals
public final void plusEquals(Phrase2CountMap rhs)
setPhraseCount
public final void setPhraseCount(Phrase key,
float value)
getPhraseCount
public final float getPhraseCount(Phrase key)
normalize
public void normalize()
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface Writable
- Throws:
IOException