Class BaseOnHeapMutableDictionary

    • Constructor Detail

      • BaseOnHeapMutableDictionary

        public BaseOnHeapMutableDictionary()
    • Method Detail

      • get

        public Object get​(int dictId)
        For performance, we don't validate the dictId passed in. It should be returned by index() or indexOf().
        Specified by:
        get in interface Dictionary
      • indexValue

        protected int indexValue​(Object value)
        Index a single value.

        This method will only be called by a single writer thread.

        Parameters:
        value - single value already converted to correct type.
      • getDictId

        protected int getDictId​(Object value)
        Get the dictId of a single value.

        This method will only be called by a single writer thread.

        Parameters:
        value - single value already converted to correct type.
        Returns:
        dictId of the value.