Class Property
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.Property
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<Property.Kind,PropertyVariant>
@JsonpDeserializable public class Property extends java.lang.Object implements TaggedUnion<Property.Kind,PropertyVariant>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Property.Builder
static class
Property.Kind
Property
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Property>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Property(PropertyVariant value)
-
Method Summary
Modifier and Type Method Description PropertyVariant
_get()
Property.Kind
_kind()
Get the of the kind of variant held by this object.AggregateMetricDoubleProperty
aggregateMetricDouble()
Get theaggregate_metric_double
variant value.FieldAliasProperty
alias()
Get thealias
variant value.BinaryProperty
binary()
Get thebinary
variant value.BooleanProperty
boolean_()
Get theboolean
variant value.ByteNumberProperty
byte_()
Get thebyte
variant value.CompletionProperty
completion()
Get thecompletion
variant value.ConstantKeywordProperty
constantKeyword()
Get theconstant_keyword
variant value.DateProperty
date()
Get thedate
variant value.DateNanosProperty
dateNanos()
Get thedate_nanos
variant value.DateRangeProperty
dateRange()
Get thedate_range
variant value.DenseVectorProperty
denseVector()
Get thedense_vector
variant value.DoubleNumberProperty
double_()
Get thedouble
variant value.DoubleRangeProperty
doubleRange()
Get thedouble_range
variant value.FlattenedProperty
flattened()
Get theflattened
variant value.FloatNumberProperty
float_()
Get thefloat
variant value.FloatRangeProperty
floatRange()
Get thefloat_range
variant value.GeoPointProperty
geoPoint()
Get thegeo_point
variant value.GeoShapeProperty
geoShape()
Get thegeo_shape
variant value.HalfFloatNumberProperty
halfFloat()
Get thehalf_float
variant value.HistogramProperty
histogram()
Get thehistogram
variant value.IntegerNumberProperty
integer()
Get theinteger
variant value.IntegerRangeProperty
integerRange()
Get theinteger_range
variant value.IpProperty
ip()
Get theip
variant value.IpRangeProperty
ipRange()
Get theip_range
variant value.boolean
isAggregateMetricDouble()
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
isBoolean()
Is this variant instance of kindboolean
?boolean
isByte()
Is this variant instance of kindbyte
?boolean
isCompletion()
Is this variant instance of kindcompletion
?boolean
isConstantKeyword()
Is this variant instance of kindconstant_keyword
?boolean
isDate()
Is this variant instance of kinddate
?boolean
isDateNanos()
Is this variant instance of kinddate_nanos
?boolean
isDateRange()
Is this variant instance of kinddate_range
?boolean
isDenseVector()
Is this variant instance of kinddense_vector
?boolean
isDouble()
Is this variant instance of kinddouble
?boolean
isDoubleRange()
Is this variant instance of kinddouble_range
?boolean
isFlattened()
Is this variant instance of kindflattened
?boolean
isFloat()
Is this variant instance of kindfloat
?boolean
isFloatRange()
Is this variant instance of kindfloat_range
?boolean
isGeoPoint()
Is this variant instance of kindgeo_point
?boolean
isGeoShape()
Is this variant instance of kindgeo_shape
?boolean
isHalfFloat()
Is this variant instance of kindhalf_float
?boolean
isHistogram()
Is this variant instance of kindhistogram
?boolean
isInteger()
Is this variant instance of kindinteger
?boolean
isIntegerRange()
Is this variant instance of kindinteger_range
?boolean
isIp()
Is this variant instance of kindip
?boolean
isIpRange()
Is this variant instance of kindip_range
?boolean
isJoin()
Is this variant instance of kindjoin
?boolean
isKeyword()
Is this variant instance of kindkeyword
?boolean
isLong()
Is this variant instance of kindlong
?boolean
isLongRange()
Is this variant instance of kindlong_range
?boolean
isMatchOnlyText()
Is this variant instance of kindmatch_only_text
?boolean
isMurmur3()
Is this variant instance of kindmurmur3
?boolean
isNested()
Is this variant instance of kindnested
?boolean
isObject()
Is this variant instance of kindobject
?boolean
isPercolator()
Is this variant instance of kindpercolator
?boolean
isPoint()
Is this variant instance of kindpoint
?boolean
isRankFeature()
Is this variant instance of kindrank_feature
?boolean
isRankFeatures()
Is this variant instance of kindrank_features
?boolean
isScaledFloat()
Is this variant instance of kindscaled_float
?boolean
isSearchAsYouType()
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
isTokenCount()
Is this variant instance of kindtoken_count
?boolean
isUnsignedLong()
Is this variant instance of kindunsigned_long
?boolean
isVersion()
Is this variant instance of kindversion
?boolean
isWildcard()
Is this variant instance of kindwildcard
?JoinProperty
join()
Get thejoin
variant value.KeywordProperty
keyword()
Get thekeyword
variant value.LongNumberProperty
long_()
Get thelong
variant value.LongRangeProperty
longRange()
Get thelong_range
variant value.MatchOnlyTextProperty
matchOnlyText()
Get thematch_only_text
variant value.Murmur3HashProperty
murmur3()
Get themurmur3
variant value.NestedProperty
nested()
Get thenested
variant value.ObjectProperty
object()
Get theobject
variant value.static Property
of(java.util.function.Function<Property.Builder,ObjectBuilder<Property>> fn)
PercolatorProperty
percolator()
Get thepercolator
variant value.PointProperty
point()
Get thepoint
variant value.RankFeatureProperty
rankFeature()
Get therank_feature
variant value.RankFeaturesProperty
rankFeatures()
Get therank_features
variant value.ScaledFloatNumberProperty
scaledFloat()
Get thescaled_float
variant value.SearchAsYouTypeProperty
searchAsYouType()
Get thesearch_as_you_type
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPropertyDeserializer(ObjectDeserializer<Property.Builder> op)
ShapeProperty
shape()
Get theshape
variant value.ShortNumberProperty
short_()
Get theshort
variant value.TextProperty
text()
Get thetext
variant value.TokenCountProperty
tokenCount()
Get thetoken_count
variant value.UnsignedLongNumberProperty
unsignedLong()
Get theunsigned_long
variant value.VersionProperty
version()
Get theversion
variant value.WildcardProperty
wildcard()
Get thewildcard
variant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Property
-
-
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,PropertyVariant>
- Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Property.Kind,PropertyVariant>
-
of
public static Property of(java.util.function.Function<Property.Builder,ObjectBuilder<Property>> fn) -
isAggregateMetricDouble
public boolean isAggregateMetricDouble()Is this variant instance of kindaggregate_metric_double
? -
aggregateMetricDouble
Get theaggregate_metric_double
variant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if the current variant is not of thedouble_range
kind.
-
isAlias
public boolean isAlias()Is this variant instance of kindalias
? -
alias
Get thealias
variant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if the current variant is not of thewildcard
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupPropertyDeserializer
-