Class ConstantValueStringDictionary
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.BaseImmutableDictionary
-
- org.apache.pinot.segment.local.segment.index.readers.ConstantValueStringDictionary
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,Dictionary
public class ConstantValueStringDictionary extends BaseImmutableDictionary
Dictionary of a single string value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
Dictionary.SortedBatchLookupAlgorithm
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
NULL_VALUE_INDEX
-
-
Constructor Summary
Constructors Constructor Description ConstantValueStringDictionary(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(int dictId)BigDecimalgetBigDecimalValue(int dictId)byte[]getBytesValue(int dictId)voidgetDictIds(List<String> values, it.unimi.dsi.fastutil.ints.IntSet dictIds)voidgetDictIds(List<String> sortedValues, it.unimi.dsi.fastutil.ints.IntSet dictIds, Dictionary.SortedBatchLookupAlgorithm algorithm)doublegetDoubleValue(int dictId)floatgetFloatValue(int dictId)intgetIntValue(int dictId)longgetLongValue(int dictId)StringgetMaxVal()StringgetMinVal()String[]getSortedValues()StringgetStringValue(int dictId)FieldSpec.DataTypegetValueType()intindexOf(String stringValue)intinsertionIndexOf(String stringValue)-
Methods inherited from class org.apache.pinot.segment.local.segment.index.readers.BaseImmutableDictionary
binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, binarySearch, close, compare, getBigDecimal, getBuffer, getBytes, getDictIdsInRange, getDouble, getFloat, getInt, getLong, getPaddedString, getUnpaddedBytes, getUnpaddedString, isSorted, length, normalizeIndex
-
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
getByteArrayValue, getInternal, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, readBigDecimalValues, readBytesValues, readDoubleValues, readDoubleValues, readFloatValues, readFloatValues, readIntValues, readIntValues, readLongValues, readLongValues, readStringValues
-
-
-
-
Constructor Detail
-
ConstantValueStringDictionary
public ConstantValueStringDictionary(String value)
-
-
Method Detail
-
getValueType
public FieldSpec.DataType getValueType()
-
indexOf
public int indexOf(String stringValue)
- Specified by:
indexOfin interfaceDictionary- Overrides:
indexOfin classBaseImmutableDictionary
-
insertionIndexOf
public int insertionIndexOf(String stringValue)
-
getMinVal
public String getMinVal()
- Specified by:
getMinValin interfaceDictionary- Overrides:
getMinValin classBaseImmutableDictionary
-
getMaxVal
public String getMaxVal()
- Specified by:
getMaxValin interfaceDictionary- Overrides:
getMaxValin classBaseImmutableDictionary
-
getSortedValues
public String[] getSortedValues()
- Specified by:
getSortedValuesin interfaceDictionary- Overrides:
getSortedValuesin classBaseImmutableDictionary
-
get
public String get(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)
-
getDictIds
public void getDictIds(List<String> sortedValues, it.unimi.dsi.fastutil.ints.IntSet dictIds, Dictionary.SortedBatchLookupAlgorithm algorithm)
- Specified by:
getDictIdsin interfaceDictionary- Overrides:
getDictIdsin classBaseImmutableDictionary
-
-