org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners
Class CountingMap<K>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,Integer>
          extended by org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.partitioners.CountingMap<K>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,Integer>

public class CountingMap<K>
extends HashMap<K,Integer>

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
CountingMap()
           
 
Method Summary
 void display()
           
 long getTotalCount()
           
 Integer put(K arg0, Integer arg1)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

CountingMap

public CountingMap()
Method Detail

put

public Integer put(K arg0,
                   Integer arg1)
Specified by:
put in interface Map<K,Integer>
Overrides:
put in class HashMap<K,Integer>

display

public void display()

getTotalCount

public long getTotalCount()


Copyright © ${year} The Apache Software Foundation