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
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProperty
(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 String
Get the actual kind when_kind()
equalsProperty.Kind._Custom
(plugin-defined variant).final Object
_get()
boolean
Is this a customProperty
defined by a plugin?final Property.Kind
_kind()
Get the of the kind of variant held by this object.Get theaggregate_metric_double
variant value.alias()
Get thealias
variant value.binary()
Get thebinary
variant value.boolean_()
Get theboolean
variant value.byte_()
Get thebyte
variant value.Get thecompletion
variant value.Get theconstant_keyword
variant value.date()
Get thedate
variant value.Get thedate_nanos
variant value.Get thedate_range
variant value.Get thedense_vector
variant value.double_()
Get thedouble
variant value.Get thedouble_range
variant value.Get the{dynamic_property}
variant value.Get theflattened
variant value.float_()
Get thefloat
variant value.Get thefloat_range
variant value.geoPoint()
Get thegeo_point
variant value.geoShape()
Get thegeo_shape
variant value.Get thehalf_float
variant value.Get thehistogram
variant value.integer()
Get theinteger
variant value.Get theinteger_range
variant value.ip()
Get theip
variant value.ipRange()
Get theip_range
variant value.boolean
Is this variant instance of kindaggregate_metric_double
?boolean
isAlias()
Is this variant instance of kindalias
?boolean
isBinary()
Is this variant instance of kindbinary
?boolean
Is this variant instance of kindboolean
?boolean
isByte()
Is this variant instance of kindbyte
?boolean
Is this variant instance of kindcompletion
?boolean
Is this variant instance of kindconstant_keyword
?boolean
isDate()
Is this variant instance of kinddate
?boolean
Is this variant instance of kinddate_nanos
?boolean
Is this variant instance of kinddate_range
?boolean
Is this variant instance of kinddense_vector
?boolean
isDouble()
Is this variant instance of kinddouble
?boolean
Is this variant instance of kinddouble_range
?boolean
Is this variant instance of kind{dynamic_property}
?boolean
Is this variant instance of kindflattened
?boolean
isFloat()
Is this variant instance of kindfloat
?boolean
Is this variant instance of kindfloat_range
?boolean
Is this variant instance of kindgeo_point
?boolean
Is this variant instance of kindgeo_shape
?boolean
Is this variant instance of kindhalf_float
?boolean
Is this variant instance of kindhistogram
?boolean
Is this variant instance of kindinteger
?boolean
Is this variant instance of kindinteger_range
?boolean
isIp()
Is this variant instance of kindip
?boolean
Is this variant instance of kindip_range
?boolean
isJoin()
Is this variant instance of kindjoin
?boolean
Is this variant instance of kindkeyword
?boolean
isLong()
Is this variant instance of kindlong
?boolean
Is this variant instance of kindlong_range
?boolean
Is this variant instance of kindmatch_only_text
?boolean
Is this variant instance of kindmurmur3
?boolean
isNested()
Is this variant instance of kindnested
?boolean
isObject()
Is this variant instance of kindobject
?boolean
Is this variant instance of kindpercolator
?boolean
isPoint()
Is this variant instance of kindpoint
?boolean
Is this variant instance of kindrank_feature
?boolean
Is this variant instance of kindrank_features
?boolean
Is this variant instance of kindscaled_float
?boolean
Is this variant instance of kindsearch_as_you_type
?boolean
isShape()
Is this variant instance of kindshape
?boolean
isShort()
Is this variant instance of kindshort
?boolean
isText()
Is this variant instance of kindtext
?boolean
Is this variant instance of kindtoken_count
?boolean
Is this variant instance of kindunsigned_long
?boolean
Is this variant instance of kindversion
?boolean
Is this variant instance of kindwildcard
?join()
Get thejoin
variant value.keyword()
Get thekeyword
variant value.long_()
Get thelong
variant value.Get thelong_range
variant value.Get thematch_only_text
variant value.murmur3()
Get themurmur3
variant value.nested()
Get thenested
variant value.object()
Get theobject
variant value.static Property
Get thepercolator
variant value.point()
Get thepoint
variant value.Get therank_feature
variant value.Get therank_features
variant value.Get thescaled_float
variant value.Get thesearch_as_you_type
variant value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
shape()
Get theshape
variant value.short_()
Get theshort
variant value.text()
Get thetext
variant value.Get thetoken_count
variant value.toString()
Get theunsigned_long
variant value.version()
Get theversion
variant value.wildcard()
Get thewildcard
variant 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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Property.Kind,
Object> - Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Property.Kind,
Object>
-
of
-
isAggregateMetricDouble
public boolean isAggregateMetricDouble()Is this variant instance of kindaggregate_metric_double
? -
aggregateMetricDouble
Get theaggregate_metric_double
variant value.- Throws:
IllegalStateException
- if the current variant is not of theaggregate_metric_double
kind.
-
isBinary
public boolean isBinary()Is this variant instance of kindbinary
? -
binary
Get thebinary
variant value.- Throws:
IllegalStateException
- if the current variant is not of thebinary
kind.
-
isBoolean
public boolean isBoolean()Is this variant instance of kindboolean
? -
boolean_
Get theboolean
variant value.- Throws:
IllegalStateException
- if the current variant is not of theboolean
kind.
-
isByte
public boolean isByte()Is this variant instance of kindbyte
? -
byte_
Get thebyte
variant value.- Throws:
IllegalStateException
- if the current variant is not of thebyte
kind.
-
isCompletion
public boolean isCompletion()Is this variant instance of kindcompletion
? -
completion
Get thecompletion
variant value.- Throws:
IllegalStateException
- if the current variant is not of thecompletion
kind.
-
isConstantKeyword
public boolean isConstantKeyword()Is this variant instance of kindconstant_keyword
? -
constantKeyword
Get theconstant_keyword
variant value.- Throws:
IllegalStateException
- if the current variant is not of theconstant_keyword
kind.
-
isDateNanos
public boolean isDateNanos()Is this variant instance of kinddate_nanos
? -
dateNanos
Get thedate_nanos
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedate_nanos
kind.
-
isDate
public boolean isDate()Is this variant instance of kinddate
? -
date
Get thedate
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedate
kind.
-
isDateRange
public boolean isDateRange()Is this variant instance of kinddate_range
? -
dateRange
Get thedate_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedate_range
kind.
-
isDenseVector
public boolean isDenseVector()Is this variant instance of kinddense_vector
? -
denseVector
Get thedense_vector
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedense_vector
kind.
-
isDouble
public boolean isDouble()Is this variant instance of kinddouble
? -
double_
Get thedouble
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedouble
kind.
-
isDoubleRange
public boolean isDoubleRange()Is this variant instance of kinddouble_range
? -
doubleRange
Get thedouble_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of thedouble_range
kind.
-
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 thealias
variant value.- Throws:
IllegalStateException
- if the current variant is not of thealias
kind.
-
isFlattened
public boolean isFlattened()Is this variant instance of kindflattened
? -
flattened
Get theflattened
variant value.- Throws:
IllegalStateException
- if the current variant is not of theflattened
kind.
-
isFloat
public boolean isFloat()Is this variant instance of kindfloat
? -
float_
Get thefloat
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefloat
kind.
-
isFloatRange
public boolean isFloatRange()Is this variant instance of kindfloat_range
? -
floatRange
Get thefloat_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of thefloat_range
kind.
-
isGeoPoint
public boolean isGeoPoint()Is this variant instance of kindgeo_point
? -
geoPoint
Get thegeo_point
variant value.- Throws:
IllegalStateException
- if the current variant is not of thegeo_point
kind.
-
isGeoShape
public boolean isGeoShape()Is this variant instance of kindgeo_shape
? -
geoShape
Get thegeo_shape
variant value.- Throws:
IllegalStateException
- if the current variant is not of thegeo_shape
kind.
-
isHalfFloat
public boolean isHalfFloat()Is this variant instance of kindhalf_float
? -
halfFloat
Get thehalf_float
variant value.- Throws:
IllegalStateException
- if the current variant is not of thehalf_float
kind.
-
isHistogram
public boolean isHistogram()Is this variant instance of kindhistogram
? -
histogram
Get thehistogram
variant value.- Throws:
IllegalStateException
- if the current variant is not of thehistogram
kind.
-
isInteger
public boolean isInteger()Is this variant instance of kindinteger
? -
integer
Get theinteger
variant value.- Throws:
IllegalStateException
- if the current variant is not of theinteger
kind.
-
isIntegerRange
public boolean isIntegerRange()Is this variant instance of kindinteger_range
? -
integerRange
Get theinteger_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of theinteger_range
kind.
-
isIp
public boolean isIp()Is this variant instance of kindip
? -
ip
Get theip
variant value.- Throws:
IllegalStateException
- if the current variant is not of theip
kind.
-
isIpRange
public boolean isIpRange()Is this variant instance of kindip_range
? -
ipRange
Get theip_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of theip_range
kind.
-
isJoin
public boolean isJoin()Is this variant instance of kindjoin
? -
join
Get thejoin
variant value.- Throws:
IllegalStateException
- if the current variant is not of thejoin
kind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword
? -
keyword
Get thekeyword
variant value.- Throws:
IllegalStateException
- if the current variant is not of thekeyword
kind.
-
isLong
public boolean isLong()Is this variant instance of kindlong
? -
long_
Get thelong
variant value.- Throws:
IllegalStateException
- if the current variant is not of thelong
kind.
-
isLongRange
public boolean isLongRange()Is this variant instance of kindlong_range
? -
longRange
Get thelong_range
variant value.- Throws:
IllegalStateException
- if the current variant is not of thelong_range
kind.
-
isMatchOnlyText
public boolean isMatchOnlyText()Is this variant instance of kindmatch_only_text
? -
matchOnlyText
Get thematch_only_text
variant value.- Throws:
IllegalStateException
- if the current variant is not of thematch_only_text
kind.
-
isMurmur3
public boolean isMurmur3()Is this variant instance of kindmurmur3
? -
murmur3
Get themurmur3
variant value.- Throws:
IllegalStateException
- if the current variant is not of themurmur3
kind.
-
isNested
public boolean isNested()Is this variant instance of kindnested
? -
nested
Get thenested
variant value.- Throws:
IllegalStateException
- if the current variant is not of thenested
kind.
-
isObject
public boolean isObject()Is this variant instance of kindobject
? -
object
Get theobject
variant value.- Throws:
IllegalStateException
- if the current variant is not of theobject
kind.
-
isPercolator
public boolean isPercolator()Is this variant instance of kindpercolator
? -
percolator
Get thepercolator
variant value.- Throws:
IllegalStateException
- if the current variant is not of thepercolator
kind.
-
isPoint
public boolean isPoint()Is this variant instance of kindpoint
? -
point
Get thepoint
variant value.- Throws:
IllegalStateException
- if the current variant is not of thepoint
kind.
-
isRankFeature
public boolean isRankFeature()Is this variant instance of kindrank_feature
? -
rankFeature
Get therank_feature
variant value.- Throws:
IllegalStateException
- if the current variant is not of therank_feature
kind.
-
isRankFeatures
public boolean isRankFeatures()Is this variant instance of kindrank_features
? -
rankFeatures
Get therank_features
variant value.- Throws:
IllegalStateException
- if the current variant is not of therank_features
kind.
-
isScaledFloat
public boolean isScaledFloat()Is this variant instance of kindscaled_float
? -
scaledFloat
Get thescaled_float
variant value.- Throws:
IllegalStateException
- if the current variant is not of thescaled_float
kind.
-
isSearchAsYouType
public boolean isSearchAsYouType()Is this variant instance of kindsearch_as_you_type
? -
searchAsYouType
Get thesearch_as_you_type
variant value.- Throws:
IllegalStateException
- if the current variant is not of thesearch_as_you_type
kind.
-
isShape
public boolean isShape()Is this variant instance of kindshape
? -
shape
Get theshape
variant value.- Throws:
IllegalStateException
- if the current variant is not of theshape
kind.
-
isShort
public boolean isShort()Is this variant instance of kindshort
? -
short_
Get theshort
variant value.- Throws:
IllegalStateException
- if the current variant is not of theshort
kind.
-
isText
public boolean isText()Is this variant instance of kindtext
? -
text
Get thetext
variant value.- Throws:
IllegalStateException
- if the current variant is not of thetext
kind.
-
isTokenCount
public boolean isTokenCount()Is this variant instance of kindtoken_count
? -
tokenCount
Get thetoken_count
variant value.- Throws:
IllegalStateException
- if the current variant is not of thetoken_count
kind.
-
isUnsignedLong
public boolean isUnsignedLong()Is this variant instance of kindunsigned_long
? -
unsignedLong
Get theunsigned_long
variant value.- Throws:
IllegalStateException
- if the current variant is not of theunsigned_long
kind.
-
isVersion
public boolean isVersion()Is this variant instance of kindversion
? -
version
Get theversion
variant value.- Throws:
IllegalStateException
- if the current variant is not of theversion
kind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard
? -
wildcard
Get thewildcard
variant value.- Throws:
IllegalStateException
- if the current variant is not of thewildcard
kind.
-
_isCustom
public boolean _isCustom()Is this a customProperty
defined by a plugin? -
_customKind
Get the actual kind when_kind()
equalsProperty.Kind._Custom
(plugin-defined variant).- Specified by:
_customKind
in 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:
serialize
in interfaceJsonpSerializable
-
toString
-
setupPropertyDeserializer
-