Class BytesOffHeapMutableDictionary

    • Constructor Detail

      • BytesOffHeapMutableDictionary

        public BytesOffHeapMutableDictionary​(int estimatedCardinality,
                                             int maxOverflowHashSize,
                                             PinotDataBufferMemoryManager memoryManager,
                                             String allocationContext,
                                             int avgLength)
        Constructor the class.
        Parameters:
        estimatedCardinality - Estimated cardinality for the column.
        maxOverflowHashSize - Max size for in-memory hash.
        memoryManager - Memory manager
        allocationContext - Context for allocation
        avgLength - Estimated average Length of entry
    • Method Detail

      • index

        public int index​(Object value)
      • index

        public int[] index​(Object[] values)
      • compare

        public int compare​(int dictId1,
                           int dictId2)
      • getDictIdsInRange

        public it.unimi.dsi.fastutil.ints.IntSet getDictIdsInRange​(String lower,
                                                                   String upper,
                                                                   boolean includeLower,
                                                                   boolean includeUpper)
      • getSortedValues

        public ByteArray[] getSortedValues()
      • indexOf

        public int indexOf​(String stringValue)
      • indexOf

        public int indexOf​(ByteArray bytesValue)
      • get

        public byte[] get​(int dictId)
      • getInternal

        public Object getInternal​(int dictId)
      • getIntValue

        public int getIntValue​(int dictId)
      • getLongValue

        public long getLongValue​(int dictId)
      • getFloatValue

        public float getFloatValue​(int dictId)
      • getDoubleValue

        public double getDoubleValue​(int dictId)
      • getBigDecimalValue

        public BigDecimal getBigDecimalValue​(int dictId)
      • getStringValue

        public String getStringValue​(int dictId)
      • getBytesValue

        public byte[] getBytesValue​(int dictId)