gov.llnl.ontology.util
Class StringCounter

java.lang.Object
  extended by gov.llnl.ontology.util.Counter<String>
      extended by gov.llnl.ontology.util.StringCounter
All Implemented Interfaces:
Serializable, Iterable<Map.Entry<String,Integer>>, org.apache.hadoop.io.Writable

public class StringCounter
extends Counter<String>
implements org.apache.hadoop.io.Writable

Author:
Keith Stevens
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.llnl.ontology.util.Counter
Counter.EntryComparator
 
Constructor Summary
StringCounter()
           
StringCounter(Collection<String> items)
           
 
Method Summary
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class gov.llnl.ontology.util.Counter
count, count, equals, getCount, getFrequency, hashCode, items, itemsSorted, iterator, max, min, reset, size, sum, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringCounter

public StringCounter()

StringCounter

public StringCounter(Collection<String> items)
Method Detail

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2010-2011. All Rights Reserved.