Class Property.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Property.Builder>
co.elastic.clients.elasticsearch._types.mapping.Property.Builder
- All Implemented Interfaces:
WithJson<Property.Builder>
,ObjectBuilder<Property>
- Enclosing class:
- Property
public static class Property.Builder
extends WithJsonObjectBuilderBase<Property.Builder>
implements ObjectBuilder<Property>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDefine thisProperty
as a plugin-defined variant.aggregateMetricDouble
(Function<AggregateMetricDoubleProperty.Builder, ObjectBuilder<AggregateMetricDoubleProperty>> fn) build()
constantKeyword
(Function<ConstantKeywordProperty.Builder, ObjectBuilder<ConstantKeywordProperty>> fn) date
(DateProperty v) ip
(IpProperty v) join
(JoinProperty v) scaledFloat
(Function<ScaledFloatNumberProperty.Builder, ObjectBuilder<ScaledFloatNumberProperty>> fn) searchAsYouType
(Function<SearchAsYouTypeProperty.Builder, ObjectBuilder<SearchAsYouTypeProperty>> fn) protected Property.Builder
self()
text
(TextProperty v) unsignedLong
(Function<UnsignedLongNumberProperty.Builder, ObjectBuilder<UnsignedLongNumberProperty>> fn) Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Property.Builder>
-
aggregateMetricDouble
-
aggregateMetricDouble
public ObjectBuilder<Property> aggregateMetricDouble(Function<AggregateMetricDoubleProperty.Builder, ObjectBuilder<AggregateMetricDoubleProperty>> fn) -
binary
-
binary
public ObjectBuilder<Property> binary(Function<BinaryProperty.Builder, ObjectBuilder<BinaryProperty>> fn) -
boolean_
-
boolean_
public ObjectBuilder<Property> boolean_(Function<BooleanProperty.Builder, ObjectBuilder<BooleanProperty>> fn) -
byte_
-
byte_
public ObjectBuilder<Property> byte_(Function<ByteNumberProperty.Builder, ObjectBuilder<ByteNumberProperty>> fn) -
completion
-
completion
public ObjectBuilder<Property> completion(Function<CompletionProperty.Builder, ObjectBuilder<CompletionProperty>> fn) -
constantKeyword
-
constantKeyword
public ObjectBuilder<Property> constantKeyword(Function<ConstantKeywordProperty.Builder, ObjectBuilder<ConstantKeywordProperty>> fn) -
dateNanos
-
dateNanos
public ObjectBuilder<Property> dateNanos(Function<DateNanosProperty.Builder, ObjectBuilder<DateNanosProperty>> fn) -
date
-
date
-
dateRange
-
dateRange
public ObjectBuilder<Property> dateRange(Function<DateRangeProperty.Builder, ObjectBuilder<DateRangeProperty>> fn) -
denseVector
-
denseVector
public ObjectBuilder<Property> denseVector(Function<DenseVectorProperty.Builder, ObjectBuilder<DenseVectorProperty>> fn) -
double_
-
double_
public ObjectBuilder<Property> double_(Function<DoubleNumberProperty.Builder, ObjectBuilder<DoubleNumberProperty>> fn) -
doubleRange
-
doubleRange
public ObjectBuilder<Property> doubleRange(Function<DoubleRangeProperty.Builder, ObjectBuilder<DoubleRangeProperty>> fn) -
dynamicProperty
-
dynamicProperty
public ObjectBuilder<Property> dynamicProperty(Function<DynamicProperty.Builder, ObjectBuilder<DynamicProperty>> fn) -
alias
-
alias
public ObjectBuilder<Property> alias(Function<FieldAliasProperty.Builder, ObjectBuilder<FieldAliasProperty>> fn) -
flattened
-
flattened
public ObjectBuilder<Property> flattened(Function<FlattenedProperty.Builder, ObjectBuilder<FlattenedProperty>> fn) -
float_
-
float_
public ObjectBuilder<Property> float_(Function<FloatNumberProperty.Builder, ObjectBuilder<FloatNumberProperty>> fn) -
floatRange
-
floatRange
public ObjectBuilder<Property> floatRange(Function<FloatRangeProperty.Builder, ObjectBuilder<FloatRangeProperty>> fn) -
geoPoint
-
geoPoint
public ObjectBuilder<Property> geoPoint(Function<GeoPointProperty.Builder, ObjectBuilder<GeoPointProperty>> fn) -
geoShape
-
geoShape
public ObjectBuilder<Property> geoShape(Function<GeoShapeProperty.Builder, ObjectBuilder<GeoShapeProperty>> fn) -
halfFloat
-
halfFloat
public ObjectBuilder<Property> halfFloat(Function<HalfFloatNumberProperty.Builder, ObjectBuilder<HalfFloatNumberProperty>> fn) -
histogram
-
histogram
public ObjectBuilder<Property> histogram(Function<HistogramProperty.Builder, ObjectBuilder<HistogramProperty>> fn) -
integer
-
integer
public ObjectBuilder<Property> integer(Function<IntegerNumberProperty.Builder, ObjectBuilder<IntegerNumberProperty>> fn) -
integerRange
-
integerRange
public ObjectBuilder<Property> integerRange(Function<IntegerRangeProperty.Builder, ObjectBuilder<IntegerRangeProperty>> fn) -
ip
-
ip
-
ipRange
-
ipRange
public ObjectBuilder<Property> ipRange(Function<IpRangeProperty.Builder, ObjectBuilder<IpRangeProperty>> fn) -
join
-
join
-
keyword
-
keyword
public ObjectBuilder<Property> keyword(Function<KeywordProperty.Builder, ObjectBuilder<KeywordProperty>> fn) -
long_
-
long_
public ObjectBuilder<Property> long_(Function<LongNumberProperty.Builder, ObjectBuilder<LongNumberProperty>> fn) -
longRange
-
longRange
public ObjectBuilder<Property> longRange(Function<LongRangeProperty.Builder, ObjectBuilder<LongRangeProperty>> fn) -
matchOnlyText
-
matchOnlyText
public ObjectBuilder<Property> matchOnlyText(Function<MatchOnlyTextProperty.Builder, ObjectBuilder<MatchOnlyTextProperty>> fn) -
murmur3
-
murmur3
public ObjectBuilder<Property> murmur3(Function<Murmur3HashProperty.Builder, ObjectBuilder<Murmur3HashProperty>> fn) -
nested
-
nested
public ObjectBuilder<Property> nested(Function<NestedProperty.Builder, ObjectBuilder<NestedProperty>> fn) -
object
-
object
public ObjectBuilder<Property> object(Function<ObjectProperty.Builder, ObjectBuilder<ObjectProperty>> fn) -
percolator
-
percolator
public ObjectBuilder<Property> percolator(Function<PercolatorProperty.Builder, ObjectBuilder<PercolatorProperty>> fn) -
point
-
point
public ObjectBuilder<Property> point(Function<PointProperty.Builder, ObjectBuilder<PointProperty>> fn) -
rankFeature
-
rankFeature
public ObjectBuilder<Property> rankFeature(Function<RankFeatureProperty.Builder, ObjectBuilder<RankFeatureProperty>> fn) -
rankFeatures
-
rankFeatures
public ObjectBuilder<Property> rankFeatures(Function<RankFeaturesProperty.Builder, ObjectBuilder<RankFeaturesProperty>> fn) -
scaledFloat
-
scaledFloat
public ObjectBuilder<Property> scaledFloat(Function<ScaledFloatNumberProperty.Builder, ObjectBuilder<ScaledFloatNumberProperty>> fn) -
searchAsYouType
-
searchAsYouType
public ObjectBuilder<Property> searchAsYouType(Function<SearchAsYouTypeProperty.Builder, ObjectBuilder<SearchAsYouTypeProperty>> fn) -
shape
-
shape
public ObjectBuilder<Property> shape(Function<ShapeProperty.Builder, ObjectBuilder<ShapeProperty>> fn) -
short_
-
short_
public ObjectBuilder<Property> short_(Function<ShortNumberProperty.Builder, ObjectBuilder<ShortNumberProperty>> fn) -
text
-
text
-
tokenCount
-
tokenCount
public ObjectBuilder<Property> tokenCount(Function<TokenCountProperty.Builder, ObjectBuilder<TokenCountProperty>> fn) -
unsignedLong
-
unsignedLong
public ObjectBuilder<Property> unsignedLong(Function<UnsignedLongNumberProperty.Builder, ObjectBuilder<UnsignedLongNumberProperty>> fn) -
version
-
version
public ObjectBuilder<Property> version(Function<VersionProperty.Builder, ObjectBuilder<VersionProperty>> fn) -
wildcard
-
wildcard
public ObjectBuilder<Property> wildcard(Function<WildcardProperty.Builder, ObjectBuilder<WildcardProperty>> fn) -
_custom
Define thisProperty
as a plugin-defined variant.- Parameters:
name
- the plugin-defined identifierdata
- the data for this customProperty
. It is converted internally toJsonData
.
-
build
- Specified by:
build
in interfaceObjectBuilder<Property>
-