Class RealtimeSegmentStatsHistory

    • Field Detail

      • LOGGER

        public static final org.slf4j.Logger LOGGER
    • Method Detail

      • getMaxNumEntries

        public static int getMaxNumEntries()
      • getDefaultEstAvgColSize

        public static int getDefaultEstAvgColSize()
      • getDefaultEstCardinality

        public static int getDefaultEstCardinality()
      • setMaxNumEntries

        public static void setMaxNumEntries​(int maxNumEntries)
      • getCursor

        public int getCursor()
      • getArraySize

        public int getArraySize()
      • isFull

        public boolean isFull()
      • isEmpty

        public boolean isEmpty()
      • setMinIntervalBetweenUpdatesMillis

        public void setMinIntervalBetweenUpdatesMillis​(long millis)
      • getEstimatedCardinality

        public int getEstimatedCardinality​(@Nonnull
                                           String columnName)
        Estimate the cardinality of a column based on past segments of a table For now, we return the average value.
        Parameters:
        columnName -
        Returns:
        estimated
      • getEstimatedAvgColSize

        public int getEstimatedAvgColSize​(@Nonnull
                                          String columnName)
        Estimate the average size of a string column based on the past segments of the table. For now, we return the average value.
        Parameters:
        columnName -
        Returns:
        estimated average string size
      • getEstimatedRowsToIndex

        public int getEstimatedRowsToIndex()
      • getLatestSegmentMemoryConsumed

        public long getLatestSegmentMemoryConsumed()