Class 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 Detail

      • table

        protected oracle.spatial.network.lod.LongHashMap.Entry[] table
      • count

        protected int count
      • threshold

        protected int threshold
      • loadFactor

        protected float loadFactor
    • Constructor Detail

      • LongHashMap

        public LongHashMap​(int initialCapacity,
                           float loadFactor)
      • LongHashMap

        public LongHashMap​(int initialCapacity)
      • LongHashMap

        public LongHashMap()
    • Method Detail

      • init

        protected void init()
      • size

        public final int size()
      • isEmpty

        public final boolean isEmpty()
      • getStatistics

        public final java.lang.String getStatistics()
      • put

        public final V put​(long key,
                           V value)
      • 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 class java.lang.Object
      • keys

        public long[] keys()