public static class BucketCommandDescriptor.Builder extends Object
Constructor and Description |
---|
Builder() |
public BucketCommandDescriptor.Builder displayQueryString(String displayQueryString)
public BucketCommandDescriptor.Builder internalQueryString(String internalQueryString)
public BucketCommandDescriptor.Builder category(String category)
public BucketCommandDescriptor.Builder referencedFields(List<AbstractField> referencedFields)
public BucketCommandDescriptor.Builder declaredFields(List<AbstractField> declaredFields)
public BucketCommandDescriptor.Builder isHidden(Boolean isHidden)
public BucketCommandDescriptor.Builder maxBuckets(Integer maxBuckets)
number of auto calculated ranges to compute if specified.
maxBuckets
- the value to setpublic BucketCommandDescriptor.Builder span(BigDecimal span)
Size of each numeric range if specified. Data type should match numeric field data type specified in the query string.
span
- the value to setpublic BucketCommandDescriptor.Builder ranges(List<BucketRange> ranges)
List of the specified numeric ranges.
ranges
- the value to setpublic BucketCommandDescriptor.Builder defaultValue(String defaultValue)
Default value to use in place of null if a result does not fit into any of the specified / calculated ranges.
defaultValue
- the value to setpublic BucketCommandDescriptor build()
public BucketCommandDescriptor.Builder copy(BucketCommandDescriptor model)
Copyright © 2016–2024. All rights reserved.