Class Property
- java.lang.Object
-
- org.opensearch.client.opensearch._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
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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.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?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?booleanisKnnVector()Is this variant instance of kindknn_vector?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.KnnVectorPropertyknnVector()Get theknn_vectorvariant 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.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<Property> _DESERIALIZER
-
-
Constructor Detail
-
Property
public Property(PropertyVariant value)
-
-
Method Detail
-
_kind
public final Property.Kind _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
public final PropertyVariant _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
public AggregateMetricDoubleProperty 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
public BinaryProperty 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_
public BooleanProperty 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_
public ByteNumberProperty 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
public CompletionProperty 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
public ConstantKeywordProperty 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
public DateNanosProperty 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
public DateProperty 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
public DateRangeProperty dateRange()
Get thedate_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_rangekind.
-
isDouble
public boolean isDouble()
Is this variant instance of kinddouble?
-
double_
public DoubleNumberProperty 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
public DoubleRangeProperty 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
public FieldAliasProperty 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
public FlattenedProperty 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_
public FloatNumberProperty 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
public FloatRangeProperty 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
public GeoPointProperty 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
public GeoShapeProperty 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
public HalfFloatNumberProperty 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
public HistogramProperty 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
public IntegerNumberProperty 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
public IntegerRangeProperty 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
public IpProperty 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
public IpRangeProperty 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
public JoinProperty 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
public KeywordProperty keyword()
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
isKnnVector
public boolean isKnnVector()
Is this variant instance of kindknn_vector?
-
knnVector
public KnnVectorProperty knnVector()
Get theknn_vectorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theknn_vectorkind.
-
isLong
public boolean isLong()
Is this variant instance of kindlong?
-
long_
public LongNumberProperty 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
public LongRangeProperty 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
public Murmur3HashProperty 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
public NestedProperty 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
public ObjectProperty 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
public PercolatorProperty 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
public PointProperty 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
public RankFeatureProperty 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
public RankFeaturesProperty 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
public ScaledFloatNumberProperty 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
public SearchAsYouTypeProperty 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
public ShapeProperty 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_
public ShortNumberProperty 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
public TextProperty 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
public TokenCountProperty 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
public UnsignedLongNumberProperty 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
public VersionProperty 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
public WildcardProperty wildcard()
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
setupPropertyDeserializer
protected static void setupPropertyDeserializer(ObjectDeserializer<Property.Builder> op)
-
-