org.elasticsearch.util.trove
Class ExtTIntIntHashMap

java.lang.Object
  extended by org.elasticsearch.util.gnu.trove.THash
      extended by org.elasticsearch.util.gnu.trove.TPrimitiveHash
          extended by org.elasticsearch.util.gnu.trove.TIntHash
              extended by org.elasticsearch.util.gnu.trove.TIntIntHashMap
                  extended by org.elasticsearch.util.trove.ExtTIntIntHashMap
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, TIntHashingStrategy

public class ExtTIntIntHashMap
extends TIntIntHashMap

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.elasticsearch.util.gnu.trove.TIntIntHashMap
_values
 
Fields inherited from class org.elasticsearch.util.gnu.trove.TIntHash
_hashingStrategy, _set
 
Fields inherited from class org.elasticsearch.util.gnu.trove.TPrimitiveHash
_states, FREE, FULL, REMOVED
 
Fields inherited from class org.elasticsearch.util.gnu.trove.THash
_autoCompactionFactor, _autoCompactRemovesRemaining, _free, _loadFactor, _maxSize, _size, DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
 
Constructor Summary
ExtTIntIntHashMap()
           
ExtTIntIntHashMap(int initialCapacity)
           
ExtTIntIntHashMap(int initialCapacity, float loadFactor)
           
ExtTIntIntHashMap(int initialCapacity, float loadFactor, TIntHashingStrategy strategy)
           
ExtTIntIntHashMap(int initialCapacity, TIntHashingStrategy strategy)
           
ExtTIntIntHashMap(TIntHashingStrategy strategy)
           
 
Method Summary
 ExtTIntIntHashMap defaultReturnValue(int defaultReturnValue)
           
 int get(int key)
          retrieves the value for key
 
Methods inherited from class org.elasticsearch.util.gnu.trove.TIntIntHashMap
adjustOrPutValue, adjustValue, clear, clone, containsKey, containsValue, equals, forEachEntry, forEachKey, forEachValue, getValues, hashCode, increment, iterator, keys, keys, put, putAll, putIfAbsent, readExternal, rehash, remove, removeAt, retainEntries, setUp, toString, transformValues, writeExternal
 
Methods inherited from class org.elasticsearch.util.gnu.trove.TIntHash
computeHashCode, contains, forEach, index, insertionIndex
 
Methods inherited from class org.elasticsearch.util.gnu.trove.TPrimitiveHash
capacity
 
Methods inherited from class org.elasticsearch.util.gnu.trove.THash
calculateGrownCapacity, compact, ensureCapacity, getAutoCompactionFactor, isEmpty, postInsertHook, reenableAutoCompaction, setAutoCompactionFactor, size, tempDisableAutoCompaction, trimToSize
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtTIntIntHashMap

public ExtTIntIntHashMap()

ExtTIntIntHashMap

public ExtTIntIntHashMap(int initialCapacity)

ExtTIntIntHashMap

public ExtTIntIntHashMap(int initialCapacity,
                         float loadFactor)

ExtTIntIntHashMap

public ExtTIntIntHashMap(TIntHashingStrategy strategy)

ExtTIntIntHashMap

public ExtTIntIntHashMap(int initialCapacity,
                         TIntHashingStrategy strategy)

ExtTIntIntHashMap

public ExtTIntIntHashMap(int initialCapacity,
                         float loadFactor,
                         TIntHashingStrategy strategy)
Method Detail

defaultReturnValue

public ExtTIntIntHashMap defaultReturnValue(int defaultReturnValue)

get

public int get(int key)
Description copied from class: TIntIntHashMap
retrieves the value for key

Overrides:
get in class TIntIntHashMap
Parameters:
key - an int value
Returns:
the value of key or (int)0 if no such mapping exists.