java.lang.Object
org.elasticsearch.xpack.core.rollup.RollupField

public class RollupField extends Object
  • Field Details

  • Constructor Details

    • RollupField

      public RollupField()
  • Method Details

    • formatFieldName

      public static String formatFieldName(ValuesSourceAggregationBuilder<?> source, String extra)
      Format to the appropriate Rollup field name convention
      Parameters:
      source - Source aggregation to get type and name from
      extra - The type of value this field is (VALUE, INTERVAL, etc)
      Returns:
      formatted field name
    • formatFieldName

      public static String formatFieldName(String field, String type, String extra)
      Format to the appropriate Rollup field name convention
      Parameters:
      field - The field we are formatting
      type - The aggregation type that was used for rollup
      extra - The type of value this field is (VALUE, INTERVAL, etc)
      Returns:
      formatted field name
    • formatMetaField

      public static String formatMetaField(String extra)
      Format to the appropriate Rollup convention for internal Metadata fields (_rollup)
    • formatCountAggName

      public static String formatCountAggName(String field)
      Format to the appropriate Rollup convention for extra Count aggs. These are added to averages and bucketing aggs that need a count
    • formatValueAggName

      public static String formatValueAggName(String field)
      Format to the appropriate Rollup convention for agg names that might conflict with empty buckets. `value` is appended to agg name. E.g. used for averages
    • formatComputed

      public static String formatComputed(String field, String agg)
      Format into the convention for computed field lookups
    • formatIndexerAggName

      public static String formatIndexerAggName(String field, String agg)
      Format into the convention used by the Indexer's composite agg, so that the normal field name is translated into a Rollup fieldname via the agg name