Class IncrementalIndex

    • Field Detail

      • preserveExistingMetrics

        protected final boolean preserveExistingMetrics
    • Constructor Detail

      • IncrementalIndex

        protected IncrementalIndex​(IncrementalIndexSchema incrementalIndexSchema,
                                   boolean preserveExistingMetrics,
                                   boolean useMaxMemoryEstimates)
        Parameters:
        incrementalIndexSchema - the schema to use for incremental index
        preserveExistingMetrics - When set to true, for any row that already has metric (with the same name defined in metricSpec), the metric aggregator in metricSpec is skipped and the existing metric is unchanged. If the row does not already have the metric, then the metric aggregator is applied on the source column as usual. This should only be set for DruidInputSource since that is the only case where we can have existing metrics. This is currently only use by auto compaction and should not be use for anything else.
        useMaxMemoryEstimates - true if max values should be used to estimate memory