Package oracle.spatial.network.lod
Class LongHashMap<V>
- java.lang.Object
-
- oracle.spatial.network.lod.LongHashMap<V>
-
- Direct Known Subclasses:
LongHashTable
,LongLinkedHashMap
public class LongHashMap<V> extends java.lang.Object
This is a bare-bones, application specific, optimized hash table implementation. We feel this will perform better than the java.util.HashMap implementation for our application both in terms of execution time and memory usage. This is an UNSYNCHRONIZED IMPLEMENTATION!- Since:
- 11g
-
-
Field Summary
Fields Modifier and Type Field Description protected int
count
protected float
loadFactor
protected oracle.spatial.network.lod.LongHashMap.Entry[]
table
protected int
threshold
-
Constructor Summary
Constructors Constructor Description LongHashMap()
LongHashMap(int initialCapacity)
LongHashMap(int initialCapacity, float loadFactor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.lang.Object
clone()
boolean
containsKey(long key)
V
get(long key)
static long
getRehashTime()
java.lang.String
getStatistics()
protected void
init()
boolean
isEmpty()
long[]
keys()
V
put(long key, V value)
V
remove(long key)
int
size()
java.util.Iterator<V>
valuesIterator()
-
-
-
Method Detail
-
init
protected void init()
-
size
public final int size()
-
isEmpty
public final boolean isEmpty()
-
getStatistics
public final java.lang.String getStatistics()
-
containsKey
public final boolean containsKey(long key)
-
get
public final V get(long key)
-
remove
public final V remove(long key)
-
valuesIterator
public java.util.Iterator<V> valuesIterator()
-
getRehashTime
public static long getRehashTime()
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
keys
public long[] keys()
-
-