java.lang.Object
org.elasticsearch.xpack.core.rollup.RollupField
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatComputed(String field, String agg) Format into the convention for computed field lookupsstatic StringformatCountAggName(String field) Format to the appropriate Rollup convention for extra Count aggs.static StringformatFieldName(String field, String type, String extra) Format to the appropriate Rollup field name conventionstatic StringformatFieldName(ValuesSourceAggregationBuilder<?> source, String extra) Format to the appropriate Rollup field name conventionstatic StringformatIndexerAggName(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 namestatic StringformatMetaField(String extra) Format to the appropriate Rollup convention for internal Metadata fields (_rollup)static StringformatValueAggName(String field) Format to the appropriate Rollup convention for agg names that might conflict with empty buckets.
-
Field Details
-
ID
public static final org.elasticsearch.xcontent.ParseField ID -
TASK_NAME
- See Also:
-
ROLLUP_META
- See Also:
-
INTERVAL
- See Also:
-
COUNT_FIELD
- See Also:
-
VERSION_FIELD
- See Also:
-
VALUE
- See Also:
-
TIMESTAMP
- See Also:
-
FILTER
- See Also:
-
NAME
- See Also:
-
TYPE_NAME
- See Also:
-
AGG
- See Also:
-
ROLLUP_MISSING
- See Also:
-
SUPPORTED_NUMERIC_METRICS
-
SUPPORTED_DATE_METRICS
-
SUPPORTED_METRICS
-
NUMERIC_FIELD_MAPPER_TYPES
-
DATE_FIELD_MAPPER_TYPES
-
-
Constructor Details
-
RollupField
public RollupField()
-
-
Method Details
-
formatFieldName
Format to the appropriate Rollup field name convention- Parameters:
source- Source aggregation to get type and name fromextra- The type of value this field is (VALUE, INTERVAL, etc)- Returns:
- formatted field name
-
formatFieldName
Format to the appropriate Rollup field name convention- Parameters:
field- The field we are formattingtype- The aggregation type that was used for rollupextra- The type of value this field is (VALUE, INTERVAL, etc)- Returns:
- formatted field name
-
formatMetaField
Format to the appropriate Rollup convention for internal Metadata fields (_rollup) -
formatCountAggName
Format to the appropriate Rollup convention for extra Count aggs. These are added to averages and bucketing aggs that need a count -
formatValueAggName
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
Format into the convention for computed field lookups -
formatIndexerAggName
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
-