Interface MutableDictionary
-
- All Superinterfaces:
AutoCloseable,Closeable,Dictionary
public interface MutableDictionary extends Dictionary
Interface for mutable dictionary (for CONSUMING segment).
-
-
Field Summary
-
Fields inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
NULL_VALUE_INDEX
-
-
Method Summary
Modifier and Type Method Description intindex(Object value)Indexes a single-value entry (a value of the dictionary type) into the dictionary, and returns the dictId of the value.int[]index(Object[] values)Indexes a multi-value entry (an array of values of the dictionary type) into the dictionary, and returns an array of dictIds for each value.default intinsertionIndexOf(String stringValue)Returns the insertion index of the string representation of the value in the dictionary.default booleanisSorted()Returnstrueif the values in the dictionary are sorted,falseotherwise.-
Methods inherited from interface org.apache.pinot.segment.spi.index.reader.Dictionary
compare, get, getBigDecimalValue, getByteArrayValue, getBytesValue, getDictIdsInRange, getDoubleValue, getFloatValue, getInternal, getIntValue, getLongValue, getMaxVal, getMinVal, getSortedValues, getStringValue, getValueType, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, length, readBigDecimalValues, readBytesValues, readDoubleValues, readFloatValues, readIntValues, readLongValues, readStringValues
-
-
-
-
Method Detail
-
index
int index(Object value)
Indexes a single-value entry (a value of the dictionary type) into the dictionary, and returns the dictId of the value.
-
index
int[] index(Object[] values)
Indexes a multi-value entry (an array of values of the dictionary type) into the dictionary, and returns an array of dictIds for each value.
-
isSorted
default boolean isSorted()
Description copied from interface:DictionaryReturnstrueif the values in the dictionary are sorted,falseotherwise.- Specified by:
isSortedin interfaceDictionary
-
insertionIndexOf
default int insertionIndexOf(String stringValue)
Description copied from interface:DictionaryReturns the insertion index of the string representation of the value in the dictionary. This method follows the same behavior as inArrays.binarySearch(Object[], Object). All sorted dictionaries should support this method. This method is for the range predicate evaluation.- Specified by:
insertionIndexOfin interfaceDictionary
-
-