Class StarTreeV2BuilderConfig


  • public class StarTreeV2BuilderConfig
    extends Object
    The StarTreeV2BuilderConfig class contains the configuration for star-tree builder.
    • Field Detail

      • DEFAULT_MAX_LEAF_RECORDS

        public static final int DEFAULT_MAX_LEAF_RECORDS
        See Also:
        Constant Field Values
    • Method Detail

      • generateDefaultConfig

        public static StarTreeV2BuilderConfig generateDefaultConfig​(SegmentMetadata segmentMetadata)
        Generates default config based on the segment metadata.
        • All dictionary-encoded single-value dimensions with cardinality smaller or equal to the threshold will be included in the split order, sorted by their cardinality in descending order.
        • All dictionary-encoded Time/DateTime columns will be appended to the split order following the dimensions, sorted by their cardinality in descending order. Here we assume that time columns will be included in most queries as the range filter column and/or the group by column, so for better performance, we always include them as the last elements in the split order.
        • Use COUNT(*) and SUM for all numeric metrics as function column pairs
        • Use default value for max leaf records
      • getDimensionsSplitOrder

        public List<String> getDimensionsSplitOrder()
      • getSkipStarNodeCreationForDimensions

        public Set<String> getSkipStarNodeCreationForDimensions()
      • getMaxLeafRecords

        public int getMaxLeafRecords()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object