Class DateHistogramAggregatorFactory

    • Method Detail

      • minDocCount

        public long minDocCount()
      • resolveMissingAny

        protected ValuesSource resolveMissingAny​(java.lang.Object missing)
        Description copied from class: ValuesSourceAggregatorFactory
        This method provides a hook for aggregations that need finer grained control over the ValuesSource selected when the user supplies a missing value and there is no mapped field to infer the type from. This will only be called for aggregations that specify the ValuesSourceType.ANY in their constructors (On the builder class). The user supplied object is passed as a parameter, so its type may be inspected as needed. Generally, only the type of the returned ValuesSource is used, so returning the EMPTY instance of the chosen type is recommended.
        Overrides:
        resolveMissingAny in class ValuesSourceAggregatorFactory<ValuesSource>
        Parameters:
        missing - The user supplied missing value
        Returns:
        A ValuesSource instance compatible with the supplied parameter