edu.umd.hooka
Class Phrase2CountMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap<Phrase,FloatWritable>
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
Phrase2CountMap()
           
 
Method Summary
 float getPhraseCount(Phrase key)
           
 void normalize()
           
 void plusEquals(Phrase2CountMap rhs)
           
 void readFields(DataInput in)
           
 void setPhraseCount(Phrase key, float value)
           
 void write(DataOutput out)
           
 
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
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Constructor Detail

Phrase2CountMap

public Phrase2CountMap()
Method Detail

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