Class FieldCapability.Builder
- All Implemented Interfaces:
WithJson<FieldCapability.Builder>,ObjectBuilder<FieldCapability>
- Enclosing class:
- FieldCapability
public static class FieldCapability.Builder extends WithJsonObjectBuilderBase<FieldCapability.Builder> implements ObjectBuilder<FieldCapability>
FieldCapability.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FieldCapability.Builderaggregatable(boolean value)Required - Whether this field can be aggregated on all indices.FieldCapabilitybuild()Builds aFieldCapability.FieldCapability.Builderindices(java.lang.String value, java.lang.String... values)The list of indices where this field has the same type family, or null if all indices have the same type family for the field.FieldCapability.Builderindices(java.util.List<java.lang.String> list)The list of indices where this field has the same type family, or null if all indices have the same type family for the field.FieldCapability.Buildermeta(java.lang.String key, JsonData value)Merged metadata across all indices as a map of string keys to arrays of values.FieldCapability.Buildermeta(java.util.Map<java.lang.String,JsonData> map)Merged metadata across all indices as a map of string keys to arrays of values.FieldCapability.BuildermetadataField(java.lang.Boolean value)Whether this field is registered as a metadata field.FieldCapability.BuildermetricConflictsIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is present if these indices don’t have the sametime_series_metricvalue for this field.FieldCapability.BuildermetricConflictsIndices(java.util.List<java.lang.String> list)The list of indices where this field is present if these indices don’t have the sametime_series_metricvalue for this field.FieldCapability.BuildernonAggregatableIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.FieldCapability.BuildernonAggregatableIndices(java.util.List<java.lang.String> list)The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.FieldCapability.BuildernonDimensionIndices(java.lang.String value, java.lang.String... values)If this list is present in response then some indices have the field marked as a dimension and other indices, the ones in this list, do not.FieldCapability.BuildernonDimensionIndices(java.util.List<java.lang.String> list)If this list is present in response then some indices have the field marked as a dimension and other indices, the ones in this list, do not.FieldCapability.BuildernonSearchableIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is not searchable, or null if all indices have the same definition for the field.FieldCapability.BuildernonSearchableIndices(java.util.List<java.lang.String> list)The list of indices where this field is not searchable, or null if all indices have the same definition for the field.FieldCapability.Buildersearchable(boolean value)Required - Whether this field is indexed for search on all indices.protected FieldCapability.Builderself()FieldCapability.BuildertimeSeriesDimension(java.lang.Boolean value)Whether this field is used as a time series dimension.FieldCapability.BuildertimeSeriesMetric(TimeSeriesMetricType value)Contains metric type if this fields is used as a time series metrics, absent if the field is not used as metric.FieldCapability.Buildertype(java.lang.String value)Required - API name:typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregatable
Required - Whether this field can be aggregated on all indices.API name:
aggregatable -
indices
The list of indices where this field has the same type family, or null if all indices have the same type family for the field.API name:
indicesAdds all elements of
listtoindices. -
indices
The list of indices where this field has the same type family, or null if all indices have the same type family for the field.API name:
indicesAdds one or more values to
indices. -
meta
Merged metadata across all indices as a map of string keys to arrays of values. A value length of 1 indicates that all indices had the same value for this key, while a length of 2 or more indicates that not all indices had the same value for this key.API name:
metaAdds all entries of
maptometa. -
meta
Merged metadata across all indices as a map of string keys to arrays of values. A value length of 1 indicates that all indices had the same value for this key, while a length of 2 or more indicates that not all indices had the same value for this key.API name:
metaAdds an entry to
meta. -
nonAggregatableIndices
The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.API name:
non_aggregatable_indicesAdds all elements of
listtononAggregatableIndices. -
nonAggregatableIndices
public final FieldCapability.Builder nonAggregatableIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is not aggregatable, or null if all indices have the same definition for the field.API name:
non_aggregatable_indicesAdds one or more values to
nonAggregatableIndices. -
nonSearchableIndices
The list of indices where this field is not searchable, or null if all indices have the same definition for the field.API name:
non_searchable_indicesAdds all elements of
listtononSearchableIndices. -
nonSearchableIndices
public final FieldCapability.Builder nonSearchableIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is not searchable, or null if all indices have the same definition for the field.API name:
non_searchable_indicesAdds one or more values to
nonSearchableIndices. -
searchable
Required - Whether this field is indexed for search on all indices.API name:
searchable -
type
Required - API name:type -
metadataField
Whether this field is registered as a metadata field.API name:
metadata_field -
timeSeriesDimension
Whether this field is used as a time series dimension.API name:
time_series_dimension -
timeSeriesMetric
Contains metric type if this fields is used as a time series metrics, absent if the field is not used as metric.API name:
time_series_metric -
nonDimensionIndices
If this list is present in response then some indices have the field marked as a dimension and other indices, the ones in this list, do not.API name:
non_dimension_indicesAdds all elements of
listtononDimensionIndices. -
nonDimensionIndices
public final FieldCapability.Builder nonDimensionIndices(java.lang.String value, java.lang.String... values)If this list is present in response then some indices have the field marked as a dimension and other indices, the ones in this list, do not.API name:
non_dimension_indicesAdds one or more values to
nonDimensionIndices. -
metricConflictsIndices
The list of indices where this field is present if these indices don’t have the sametime_series_metricvalue for this field.API name:
metric_conflicts_indicesAdds all elements of
listtometricConflictsIndices. -
metricConflictsIndices
public final FieldCapability.Builder metricConflictsIndices(java.lang.String value, java.lang.String... values)The list of indices where this field is present if these indices don’t have the sametime_series_metricvalue for this field.API name:
metric_conflicts_indicesAdds one or more values to
metricConflictsIndices. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FieldCapability.Builder>
-
build
Builds aFieldCapability.- Specified by:
buildin interfaceObjectBuilder<FieldCapability>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-