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 classProperty.Builderstatic classProperty.KindPropertyvariant 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.AggregateMetricDoublePropertyaggregateMetricDouble()Get theaggregate_metric_doublevariant value.FieldAliasPropertyalias()Get thealiasvariant value.BinaryPropertybinary()Get thebinaryvariant value.BooleanPropertyboolean_()Get thebooleanvariant value.ByteNumberPropertybyte_()Get thebytevariant value.CompletionPropertycompletion()Get thecompletionvariant value.ConstantKeywordPropertyconstantKeyword()Get theconstant_keywordvariant value.DatePropertydate()Get thedatevariant value.DateNanosPropertydateNanos()Get thedate_nanosvariant value.DateRangePropertydateRange()Get thedate_rangevariant value.DenseVectorPropertydenseVector()Get thedense_vectorvariant value.DoubleNumberPropertydouble_()Get thedoublevariant value.DoubleRangePropertydoubleRange()Get thedouble_rangevariant value.FlattenedPropertyflattened()Get theflattenedvariant value.FloatNumberPropertyfloat_()Get thefloatvariant value.FloatRangePropertyfloatRange()Get thefloat_rangevariant value.GeoPointPropertygeoPoint()Get thegeo_pointvariant value.GeoShapePropertygeoShape()Get thegeo_shapevariant value.HalfFloatNumberPropertyhalfFloat()Get thehalf_floatvariant value.HistogramPropertyhistogram()Get thehistogramvariant value.IntegerNumberPropertyinteger()Get theintegervariant value.IntegerRangePropertyintegerRange()Get theinteger_rangevariant value.IpPropertyip()Get theipvariant value.IpRangePropertyipRange()Get theip_rangevariant value.booleanisAggregateMetricDouble()Is this variant instance of kindaggregate_metric_double?booleanisAlias()Is this variant instance of kindalias?booleanisBinary()Is this variant instance of kindbinary?booleanisBoolean()Is this variant instance of kindboolean?booleanisByte()Is this variant instance of kindbyte?booleanisCompletion()Is this variant instance of kindcompletion?booleanisConstantKeyword()Is this variant instance of kindconstant_keyword?booleanisDate()Is this variant instance of kinddate?booleanisDateNanos()Is this variant instance of kinddate_nanos?booleanisDateRange()Is this variant instance of kinddate_range?booleanisDenseVector()Is this variant instance of kinddense_vector?booleanisDouble()Is this variant instance of kinddouble?booleanisDoubleRange()Is this variant instance of kinddouble_range?booleanisFlattened()Is this variant instance of kindflattened?booleanisFloat()Is this variant instance of kindfloat?booleanisFloatRange()Is this variant instance of kindfloat_range?booleanisGeoPoint()Is this variant instance of kindgeo_point?booleanisGeoShape()Is this variant instance of kindgeo_shape?booleanisHalfFloat()Is this variant instance of kindhalf_float?booleanisHistogram()Is this variant instance of kindhistogram?booleanisInteger()Is this variant instance of kindinteger?booleanisIntegerRange()Is this variant instance of kindinteger_range?booleanisIp()Is this variant instance of kindip?booleanisIpRange()Is this variant instance of kindip_range?booleanisJoin()Is this variant instance of kindjoin?booleanisKeyword()Is this variant instance of kindkeyword?booleanisLong()Is this variant instance of kindlong?booleanisLongRange()Is this variant instance of kindlong_range?booleanisMurmur3()Is this variant instance of kindmurmur3?booleanisNested()Is this variant instance of kindnested?booleanisObject()Is this variant instance of kindobject?booleanisPercolator()Is this variant instance of kindpercolator?booleanisPoint()Is this variant instance of kindpoint?booleanisRankFeature()Is this variant instance of kindrank_feature?booleanisRankFeatures()Is this variant instance of kindrank_features?booleanisScaledFloat()Is this variant instance of kindscaled_float?booleanisSearchAsYouType()Is 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?booleanisTokenCount()Is this variant instance of kindtoken_count?booleanisUnsignedLong()Is this variant instance of kindunsigned_long?booleanisVersion()Is this variant instance of kindversion?booleanisWildcard()Is this variant instance of kindwildcard?JoinPropertyjoin()Get thejoinvariant value.KeywordPropertykeyword()Get thekeywordvariant value.LongNumberPropertylong_()Get thelongvariant value.LongRangePropertylongRange()Get thelong_rangevariant value.Murmur3HashPropertymurmur3()Get themurmur3variant value.NestedPropertynested()Get thenestedvariant value.ObjectPropertyobject()Get theobjectvariant value.static Propertyof(java.util.function.Function<Property.Builder,ObjectBuilder<Property>> fn)PercolatorPropertypercolator()Get thepercolatorvariant value.PointPropertypoint()Get thepointvariant value.RankFeaturePropertyrankFeature()Get therank_featurevariant value.RankFeaturesPropertyrankFeatures()Get therank_featuresvariant value.ScaledFloatNumberPropertyscaledFloat()Get thescaled_floatvariant value.SearchAsYouTypePropertysearchAsYouType()Get thesearch_as_you_typevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPropertyDeserializer(ObjectDeserializer<Property.Builder> op)ShapePropertyshape()Get theshapevariant value.ShortNumberPropertyshort_()Get theshortvariant value.TextPropertytext()Get thetextvariant value.TokenCountPropertytokenCount()Get thetoken_countvariant value.UnsignedLongNumberPropertyunsignedLong()Get theunsigned_longvariant value.VersionPropertyversion()Get theversionvariant value.WildcardPropertywildcard()Get thewildcardvariant 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:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Property.Kind,PropertyVariant>- Returns:
- the variant kind
-
_get
- Specified by:
_getin 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_doublevariant value.- Throws:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thebinarykind.
-
isBoolean
public boolean isBoolean()Is this variant instance of kindboolean? -
boolean_
Get thebooleanvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebooleankind.
-
isByte
public boolean isByte()Is this variant instance of kindbyte? -
byte_
Get thebytevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebytekind.
-
isCompletion
public boolean isCompletion()Is this variant instance of kindcompletion? -
completion
Get thecompletionvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thedouble_rangekind.
-
isAlias
public boolean isAlias()Is this variant instance of kindalias? -
alias
Get thealiasvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thealiaskind.
-
isFlattened
public boolean isFlattened()Is this variant instance of kindflattened? -
flattened
Get theflattenedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theflattenedkind.
-
isFloat
public boolean isFloat()Is this variant instance of kindfloat? -
float_
Get thefloatvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
isInteger
public boolean isInteger()Is this variant instance of kindinteger? -
integer
Get theintegervariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thejoinkind.
-
isKeyword
public boolean isKeyword()Is this variant instance of kindkeyword? -
keyword
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
isLong
public boolean isLong()Is this variant instance of kindlong? -
long_
Get thelongvariant value.- Throws:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of thelong_rangekind.
-
isMurmur3
public boolean isMurmur3()Is this variant instance of kindmurmur3? -
murmur3
Get themurmur3variant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themurmur3kind.
-
isNested
public boolean isNested()Is this variant instance of kindnested? -
nested
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
isObject
public boolean isObject()Is this variant instance of kindobject? -
object
Get theobjectvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theobjectkind.
-
isPercolator
public boolean isPercolator()Is this variant instance of kindpercolator? -
percolator
Get thepercolatorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercolatorkind.
-
isPoint
public boolean isPoint()Is this variant instance of kindpoint? -
point
Get thepointvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of theshapekind.
-
isShort
public boolean isShort()Is this variant instance of kindshort? -
short_
Get theshortvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theshortkind.
-
isText
public boolean isText()Is this variant instance of kindtext? -
text
Get thetextvariant value.- Throws:
java.lang.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:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current variant is not of theversionkind.
-
isWildcard
public boolean isWildcard()Is this variant instance of kindwildcard? -
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupPropertyDeserializer
-