Class MapBasedGlobalDictionaries

    • Method Detail

      • addOrigValueToGlobalDictionary

        public void addOrigValueToGlobalDictionary​(Object origValue,
                                                   String column,
                                                   org.apache.pinot.segment.spi.ColumnMetadata columnMetadata,
                                                   int cardinality)
        First step towards building global dictionary by inserting the original values from segments into global dictionary
        Specified by:
        addOrigValueToGlobalDictionary in interface GlobalDictionaries
        Parameters:
        origValue - original value
        column - column name
        columnMetadata - column metadata
        cardinality - total cardinality of column
      • sortOriginalValuesInGlobalDictionaries

        public void sortOriginalValuesInGlobalDictionaries()
        This is the second step where we complete the global dictionaries by sorting the original values to get sort order across all segments
        Specified by:
        sortOriginalValuesInGlobalDictionaries in interface GlobalDictionaries
      • addDerivedValuesToGlobalDictionaries

        public void addDerivedValuesToGlobalDictionaries()
        This is the third and final step where we complete the global dictionaries by generating values: For numeric columns, we generate in order since we start with a base value. For string column, we first generate and then sort
        Specified by:
        addDerivedValuesToGlobalDictionaries in interface GlobalDictionaries