public static class GeoStatsCommandDescriptor.Builder extends Object
Constructor and Description |
---|
Builder() |
public GeoStatsCommandDescriptor.Builder displayQueryString(String displayQueryString)
public GeoStatsCommandDescriptor.Builder internalQueryString(String internalQueryString)
public GeoStatsCommandDescriptor.Builder category(String category)
public GeoStatsCommandDescriptor.Builder referencedFields(List<AbstractField> referencedFields)
public GeoStatsCommandDescriptor.Builder declaredFields(List<AbstractField> declaredFields)
public GeoStatsCommandDescriptor.Builder isHidden(Boolean isHidden)
public GeoStatsCommandDescriptor.Builder include(GeoStatsCommandDescriptor.Include include)
Indicates which coordinates to show. Either client, server, client and server or custom. If custom is specified at least one of coordinatesField, regionField or countryField is required. Defaults to client.
include
- the value to setpublic GeoStatsCommandDescriptor.Builder cityField(AbstractField cityField)
The city field to use. Only applicable when include = CUSTOM.
cityField
- the value to setpublic GeoStatsCommandDescriptor.Builder regionField(AbstractField regionField)
The region field to use. Only applicable when include = CUSTOM.
regionField
- the value to setpublic GeoStatsCommandDescriptor.Builder countryField(AbstractField countryField)
The country field to use. Only applicable when include = CUSTOM.
countryField
- the value to setpublic GeoStatsCommandDescriptor.Builder continentField(AbstractField continentField)
The continent field to use. Only applicable when include = CUSTOM.
continentField
- the value to setpublic GeoStatsCommandDescriptor.Builder coordinatesField(AbstractField coordinatesField)
The coordinates field to use. Only applicable when include = CUSTOM.
coordinatesField
- the value to setpublic GeoStatsCommandDescriptor.Builder groupByFields(List<AbstractField> groupByFields)
Group by fields if specified in the query string. Required if include = CUSTOM.
groupByFields
- the value to setpublic GeoStatsCommandDescriptor.Builder functions(List<FunctionField> functions)
Statistical functions specified in the query string. At least 1 is required for a GEOSTATS command.
functions
- the value to setpublic GeoStatsCommandDescriptor build()
public GeoStatsCommandDescriptor.Builder copy(GeoStatsCommandDescriptor model)
Copyright © 2016–2024. All rights reserved.