Class Property
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.Property
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<Property.Kind,,Object> TaggedUnion<Property.Kind,Object>
@JsonpDeserializable
public class Property
extends Object
implements OpenTaggedUnion<Property.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProperty(PropertyVariant value) Build a custom plugin-definedProperty, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsProperty.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customPropertydefined by a plugin?final Property.Kind_kind()Get the of the kind of variant held by this object.Get theaggregate_metric_doublevariant value.alias()Get thealiasvariant value.binary()Get thebinaryvariant value.boolean_()Get thebooleanvariant value.byte_()Get thebytevariant value.Get thecompletionvariant value.Get theconstant_keywordvariant value.date()Get thedatevariant value.Get thedate_nanosvariant value.Get thedate_rangevariant value.Get thedense_vectorvariant value.double_()Get thedoublevariant value.Get thedouble_rangevariant value.Get the{dynamic_property}variant value.Get theflattenedvariant value.float_()Get thefloatvariant value.Get thefloat_rangevariant value.geoPoint()Get thegeo_pointvariant value.geoShape()Get thegeo_shapevariant value.Get thehalf_floatvariant value.Get thehistogramvariant value.integer()Get theintegervariant value.Get theinteger_rangevariant value.ip()Get theipvariant value.ipRange()Get theip_rangevariant value.booleanIs this variant instance of kindaggregate_metric_double?booleanisAlias()Is this variant instance of kindalias?booleanisBinary()Is this variant instance of kindbinary?booleanIs this variant instance of kindboolean?booleanisByte()Is this variant instance of kindbyte?booleanIs this variant instance of kindcompletion?booleanIs this variant instance of kindconstant_keyword?booleanisDate()Is this variant instance of kinddate?booleanIs this variant instance of kinddate_nanos?booleanIs this variant instance of kinddate_range?booleanIs this variant instance of kinddense_vector?booleanisDouble()Is this variant instance of kinddouble?booleanIs this variant instance of kinddouble_range?booleanIs this variant instance of kind{dynamic_property}?booleanIs this variant instance of kindflattened?booleanisFloat()Is this variant instance of kindfloat?booleanIs this variant instance of kindfloat_range?booleanIs this variant instance of kindgeo_point?booleanIs this variant instance of kindgeo_shape?booleanIs this variant instance of kindhalf_float?booleanIs this variant instance of kindhistogram?booleanIs this variant instance of kindinteger?booleanIs this variant instance of kindinteger_range?booleanisIp()Is this variant instance of kindip?booleanIs this variant instance of kindip_range?booleanisJoin()Is this variant instance of kindjoin?booleanIs this variant instance of kindkeyword?booleanisLong()Is this variant instance of kindlong?booleanIs this variant instance of kindlong_range?booleanIs this variant instance of kindmatch_only_text?booleanIs this variant instance of kindmurmur3?booleanisNested()Is this variant instance of kindnested?booleanisObject()Is this variant instance of kindobject?booleanIs this variant instance of kindpercolator?booleanisPoint()Is this variant instance of kindpoint?booleanIs this variant instance of kindrank_feature?booleanIs this variant instance of kindrank_features?booleanIs this variant instance of kindscaled_float?booleanIs this variant instance of kindsearch_as_you_type?booleanisShape()Is this variant instance of kindshape?booleanisShort()Is this variant instance of kindshort?booleanisText()Is this variant instance of kindtext?booleanIs this variant instance of kindtoken_count?booleanIs this variant instance of kindunsigned_long?booleanIs this variant instance of kindversion?booleanIs this variant instance of kindwildcard?join()Get thejoinvariant value.keyword()Get thekeywordvariant value.long_()Get thelongvariant value.Get thelong_rangevariant value.Get thematch_only_textvariant value.murmur3()Get themurmur3variant value.nested()Get thenestedvariant value.object()Get theobjectvariant value.static PropertyGet thepercolatorvariant value.point()Get thepointvariant value.Get therank_featurevariant value.Get therank_featuresvariant value.Get thescaled_floatvariant value.Get thesearch_as_you_typevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidshape()Get theshapevariant value.short_()Get theshortvariant value.text()Get thetextvariant value.Get thetoken_countvariant value.toString()Get theunsigned_longvariant value.version()Get theversionvariant value.wildcard()Get thewildcardvariant value.
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Property
-
Property
Build a custom plugin-definedProperty, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Property.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Property.Kind,Object>
-
of
-
isAggregateMetricDouble
public boolean isAggregateMetricDouble()Is this variant instance of kindaggregate_metric_double? -
aggregateMetricDouble
Get theaggregate_metric_doublevariant value.- Throws:
IllegalStateException- if the current variant is not of theaggregate_metric_doublekind.
-
isBinary
public boolean isBinary()Is this variant instance of kindbinary? -
binary
Get thebinaryvariant value.- Throws:
IllegalStateException- if the current variant is not of thebinarykind.
-
isBoolean
public boolean isBoolean()Is this variant instance of kindboolean? -
boolean_
Get thebooleanvariant value.- Throws:
IllegalStateException- if the current variant is not of thebooleankind.
-
isByte
public boolean isByte()Is this variant instance of kindbyte? -
byte_
Get thebytevariant value.- Throws:
IllegalStateException- if the current variant is not of thebytekind.
-
isCompletion
public boolean isCompletion()Is this variant instance of kindcompletion? -
completion
Get thecompletionvariant value.- Throws:
IllegalStateException- if the current variant is not of thecompletionkind.
-
isConstantKeyword
public boolean isConstantKeyword()Is this variant instance of kindconstant_keyword? -
constantKeyword
Get theconstant_keywordvariant value.- Throws:
IllegalStateException- if the current variant is not of theconstant_keywordkind.
-
isDateNanos
public boolean isDateNanos()Is this variant instance of kinddate_nanos? -
dateNanos
Get thedate_nanosvariant value.- Throws:
IllegalStateException- if the current variant is not of thedate_nanoskind.
-
isDate
public boolean isDate()Is this variant instance of kinddate? -
date
Get thedatevariant value.- Throws:
IllegalStateException- if the current variant is not of thedatekind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range? -
dateRange
Get thedate_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thedate_rangekind.
-
isDenseVector
public boolean isDenseVector()Is this variant instance of kinddense_vector? -
denseVector
Get thedense_vectorvariant value.- Throws:
IllegalStateException- if the current variant is not of thedense_vectorkind.
-
isDouble
public boolean isDouble()Is this variant instance of kinddouble? -
double_
Get thedoublevariant value.- Throws:
IllegalStateException- if the current variant is not of thedoublekind.
-
isDoubleRange
public boolean isDoubleRange()Is this variant instance of kinddouble_range? -
doubleRange
Get thedouble_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thedouble_rangekind.
-
isDynamicProperty
public boolean isDynamicProperty()Is this variant instance of kind{dynamic_property}? -
dynamicProperty
Get the{dynamic_property}variant value.- Throws:
IllegalStateException- if the current variant is not of the{dynamic_property}kind.
-
isAlias
public boolean isAlias()Is this variant instance of kindalias? -
alias
Get thealiasvariant value.- Throws:
IllegalStateException- if the current variant is not of thealiaskind.
-
isFlattened
public boolean isFlattened()Is this variant instance of kindflattened? -
flattened
Get theflattenedvariant value.- Throws:
IllegalStateException- if the current variant is not of theflattenedkind.
-
isFloat
public boolean isFloat()Is this variant instance of kindfloat? -
float_
Get thefloatvariant value.- Throws:
IllegalStateException- if the current variant is not of thefloatkind.
-
isFloatRange
public boolean isFloatRange()Is this variant instance of kindfloat_range? -
floatRange
Get thefloat_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thefloat_rangekind.
-
isGeoPoint
public boolean isGeoPoint()Is this variant instance of kindgeo_point? -
geoPoint
Get thegeo_pointvariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_pointkind.
-
isGeoShape
public boolean isGeoShape()Is this variant instance of kindgeo_shape? -
geoShape
Get thegeo_shapevariant value.- Throws:
IllegalStateException- if the current variant is not of thegeo_shapekind.
-
isHalfFloat
public boolean isHalfFloat()Is this variant instance of kindhalf_float? -
halfFloat
Get thehalf_floatvariant value.- Throws:
IllegalStateException- if the current variant is not of thehalf_floatkind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram? -
histogram
Get thehistogramvariant value.- Throws:
IllegalStateException- if the current variant is not of thehistogramkind.
-
isInteger
public boolean isInteger()Is this variant instance of kindinteger? -
integer
Get theintegervariant value.- Throws:
IllegalStateException- if the current variant is not of theintegerkind.
-
isIntegerRange
public boolean isIntegerRange()Is this variant instance of kindinteger_range? -
integerRange
Get theinteger_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of theinteger_rangekind.
-
isIp
public boolean isIp()Is this variant instance of kindip? -
ip
Get theipvariant value.- Throws:
IllegalStateException- if the current variant is not of theipkind.
-
isIpRange
public boolean isIpRange()Is this variant instance of kindip_range? -
ipRange
Get theip_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of theip_rangekind.
-
isJoin
public boolean isJoin()Is this variant instance of kindjoin? -
join
Get thejoinvariant value.- Throws:
IllegalStateException- if the current variant is not of thejoinkind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword? -
keyword
Get thekeywordvariant value.- Throws:
IllegalStateException- if the current variant is not of thekeywordkind.
-
isLong
public boolean isLong()Is this variant instance of kindlong? -
long_
Get thelongvariant value.- Throws:
IllegalStateException- if the current variant is not of thelongkind.
-
isLongRange
public boolean isLongRange()Is this variant instance of kindlong_range? -
longRange
Get thelong_rangevariant value.- Throws:
IllegalStateException- if the current variant is not of thelong_rangekind.
-
isMatchOnlyText
public boolean isMatchOnlyText()Is this variant instance of kindmatch_only_text? -
matchOnlyText
Get thematch_only_textvariant value.- Throws:
IllegalStateException- if the current variant is not of thematch_only_textkind.
-
isMurmur3
public boolean isMurmur3()Is this variant instance of kindmurmur3? -
murmur3
Get themurmur3variant value.- Throws:
IllegalStateException- if the current variant is not of themurmur3kind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
IllegalStateException- if the current variant is not of thenestedkind.
-
isObject
public boolean isObject()Is this variant instance of kindobject? -
object
Get theobjectvariant value.- Throws:
IllegalStateException- if the current variant is not of theobjectkind.
-
isPercolator
public boolean isPercolator()Is this variant instance of kindpercolator? -
percolator
Get thepercolatorvariant value.- Throws:
IllegalStateException- if the current variant is not of thepercolatorkind.
-
isPoint
public boolean isPoint()Is this variant instance of kindpoint? -
point
Get thepointvariant value.- Throws:
IllegalStateException- if the current variant is not of thepointkind.
-
isRankFeature
public boolean isRankFeature()Is this variant instance of kindrank_feature? -
rankFeature
Get therank_featurevariant value.- Throws:
IllegalStateException- if the current variant is not of therank_featurekind.
-
isRankFeatures
public boolean isRankFeatures()Is this variant instance of kindrank_features? -
rankFeatures
Get therank_featuresvariant value.- Throws:
IllegalStateException- if the current variant is not of therank_featureskind.
-
isScaledFloat
public boolean isScaledFloat()Is this variant instance of kindscaled_float? -
scaledFloat
Get thescaled_floatvariant value.- Throws:
IllegalStateException- if the current variant is not of thescaled_floatkind.
-
isSearchAsYouType
public boolean isSearchAsYouType()Is this variant instance of kindsearch_as_you_type? -
searchAsYouType
Get thesearch_as_you_typevariant value.- Throws:
IllegalStateException- if the current variant is not of thesearch_as_you_typekind.
-
isShape
public boolean isShape()Is this variant instance of kindshape? -
shape
Get theshapevariant value.- Throws:
IllegalStateException- if the current variant is not of theshapekind.
-
isShort
public boolean isShort()Is this variant instance of kindshort? -
short_
Get theshortvariant value.- Throws:
IllegalStateException- if the current variant is not of theshortkind.
-
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
IllegalStateException- if the current variant is not of thetextkind.
-
isTokenCount
public boolean isTokenCount()Is this variant instance of kindtoken_count? -
tokenCount
Get thetoken_countvariant value.- Throws:
IllegalStateException- if the current variant is not of thetoken_countkind.
-
isUnsignedLong
public boolean isUnsignedLong()Is this variant instance of kindunsigned_long? -
unsignedLong
Get theunsigned_longvariant value.- Throws:
IllegalStateException- if the current variant is not of theunsigned_longkind.
-
isVersion
public boolean isVersion()Is this variant instance of kindversion? -
version
Get theversionvariant value.- Throws:
IllegalStateException- if the current variant is not of theversionkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
IllegalStateException- if the current variant is not of thewildcardkind.
-
_isCustom
public boolean _isCustom()Is this a customPropertydefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsProperty.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<Property.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notProperty.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupPropertyDeserializer
-