public static class TimeClusterCommandDescriptor.Builder extends Object
Constructor and Description |
---|
Builder() |
public TimeClusterCommandDescriptor.Builder displayQueryString(String displayQueryString)
public TimeClusterCommandDescriptor.Builder internalQueryString(String internalQueryString)
public TimeClusterCommandDescriptor.Builder category(String category)
public TimeClusterCommandDescriptor.Builder referencedFields(List<AbstractField> referencedFields)
public TimeClusterCommandDescriptor.Builder declaredFields(List<AbstractField> declaredFields)
public TimeClusterCommandDescriptor.Builder isHidden(Boolean isHidden)
public TimeClusterCommandDescriptor.Builder time(AbstractField time)
Optional timestamp datatype field if specified. Default field is ‘Start Time’.
time
- the value to setpublic TimeClusterCommandDescriptor.Builder span(String span)
Option to control the size of buckets in the timeseries. Will be adjusted to a larger span if time range is very large.
span
- the value to setpublic TimeClusterCommandDescriptor.Builder groupByFields(List<AbstractField> groupByFields)
Group by fields specified in the query string.
groupByFields
- the value to setpublic TimeClusterCommandDescriptor.Builder functions(List<FunctionField> functions)
Statistical functions specified in the query string. Atleast 1 is required for a TIMECLUSTER command.
functions
- the value to setpublic TimeClusterCommandDescriptor build()
public TimeClusterCommandDescriptor.Builder copy(TimeClusterCommandDescriptor model)
Copyright © 2016–2024. All rights reserved.