Class BytesOnHeapMutableDictionary
- java.lang.Object
-
- org.apache.pinot.segment.local.realtime.impl.dictionary.BaseOnHeapMutableDictionary
-
- org.apache.pinot.segment.local.realtime.impl.dictionary.BytesOnHeapMutableDictionary
-
- All Implemented Interfaces:
Closeable,AutoCloseable,MutableDictionary,Dictionary
public class BytesOnHeapMutableDictionary extends BaseOnHeapMutableDictionary
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
NULL_VALUE_INDEX
-
-
Constructor Summary
Constructors Constructor Description BytesOnHeapMutableDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(int dictId1, int dictId2)byte[]get(int dictId)For performance, we don't validate the dictId passed in.BigDecimalgetBigDecimalValue(int dictId)ByteArraygetByteArrayValue(int dictId)byte[]getBytesValue(int dictId)it.unimi.dsi.fastutil.ints.IntSetgetDictIdsInRange(String lower, String upper, boolean includeLower, boolean includeUpper)doublegetDoubleValue(int dictId)floatgetFloatValue(int dictId)ObjectgetInternal(int dictId)intgetIntValue(int dictId)longgetLongValue(int dictId)ByteArraygetMaxVal()ByteArraygetMinVal()ByteArray[]getSortedValues()StringgetStringValue(int dictId)FieldSpec.DataTypegetValueType()intindex(Object value)int[]index(Object[] values)intindexOf(String stringValue)intindexOf(ByteArray bytesValue)-
Methods inherited from class org.apache.pinot.segment.local.realtime.impl.dictionary.BaseOnHeapMutableDictionary
close, getDictId, indexValue, length
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
indexOf, indexOf, indexOf, indexOf, indexOf, readBigDecimalValues, readBytesValues, readDoubleValues, readFloatValues, readIntValues, readLongValues, readStringValues
-
Methods inherited from interface org.apache.pinot.segment.spi.index.mutable.MutableDictionary
insertionIndexOf, isSorted
-
-
-
-
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)
-
getMinVal
public ByteArray getMinVal()
-
getMaxVal
public ByteArray getMaxVal()
-
getSortedValues
public ByteArray[] getSortedValues()
-
getValueType
public FieldSpec.DataType getValueType()
-
indexOf
public int indexOf(String stringValue)
-
indexOf
public int indexOf(ByteArray bytesValue)
-
get
public byte[] get(int dictId)
Description copied from class:BaseOnHeapMutableDictionaryFor performance, we don't validate the dictId passed in. It should be returned by index() or indexOf().- Specified by:
getin interfaceDictionary- Overrides:
getin classBaseOnHeapMutableDictionary
-
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)
-
getByteArrayValue
public ByteArray getByteArrayValue(int dictId)
-
-