public static class TimeStatsCommandDescriptor.Builder extends Object
Constructor and Description |
---|
Builder() |
public TimeStatsCommandDescriptor.Builder displayQueryString(String displayQueryString)
public TimeStatsCommandDescriptor.Builder internalQueryString(String internalQueryString)
public TimeStatsCommandDescriptor.Builder category(String category)
public TimeStatsCommandDescriptor.Builder referencedFields(List<AbstractField> referencedFields)
public TimeStatsCommandDescriptor.Builder declaredFields(List<AbstractField> declaredFields)
public TimeStatsCommandDescriptor.Builder isHidden(Boolean isHidden)
public TimeStatsCommandDescriptor.Builder time(AbstractField time)
Optional timestamp datatype field if specified. Default field is time.
time
- the value to setpublic TimeStatsCommandDescriptor.Builder span(String span)
Option to control the size of buckets in the histogram e.g 8hrs - each bar other than first and last should represent 8hr time span. Will be adjusted to a larger span if time range is very large.
span
- the value to setpublic TimeStatsCommandDescriptor.Builder groupByFields(List<AbstractField> groupByFields)
Group by fields if specified in the query string.
groupByFields
- the value to setpublic TimeStatsCommandDescriptor.Builder functions(List<FunctionField> functions)
Statistical functions specified in the query string. Atleast 1 is required for a TIMESTATS command.
functions
- the value to setpublic TimeStatsCommandDescriptor build()
public TimeStatsCommandDescriptor.Builder copy(TimeStatsCommandDescriptor model)
Copyright © 2016–2024. All rights reserved.