Class Property
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.Property
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class Property extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProperty.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Property>_DESERIALIZERstatic java.lang.StringAGGREGATE_METRIC_DOUBLEstatic java.lang.StringALIASstatic java.lang.StringBINARYstatic java.lang.StringBOOLEANstatic java.lang.StringCOMPLETIONstatic java.lang.StringCONSTANT_KEYWORDstatic java.lang.StringDATEstatic java.lang.StringDATE_NANOSstatic java.lang.StringDATE_RANGEstatic java.lang.StringDENSE_VECTORstatic java.lang.StringDOUBLE_RANGEstatic java.lang.StringFLATTENEDstatic java.lang.StringFLOATstatic java.lang.StringFLOAT_RANGEstatic java.lang.StringGEO_POINTstatic java.lang.StringGEO_SHAPEstatic java.lang.StringHISTOGRAMstatic java.lang.StringINTEGER_RANGEstatic java.lang.StringIPstatic java.lang.StringIP_RANGEstatic java.lang.StringJOINstatic java.lang.StringKEYWORDstatic java.lang.StringLONG_RANGEstatic java.lang.StringMURMUR3static java.lang.StringNESTEDstatic java.lang.StringOBJECTstatic java.lang.StringPERCOLATORstatic java.lang.StringPOINTstatic java.lang.StringRANK_FEATUREstatic java.lang.StringRANK_FEATURESstatic java.lang.StringSEARCH_AS_YOU_TYPEstatic java.lang.StringSHAPEstatic java.lang.StringTEXTstatic java.lang.StringTOKEN_COUNTstatic java.lang.StringVERSIONstatic java.lang.StringWILDCARD -
Constructor Summary
Constructors Constructor Description Property(PropertyVariant value)Property(ObjectBuilder<T> builder)Property(java.util.function.Function<Property.Builder,Property.Builder> fn) -
Method Summary
Modifier and Type Method Description JsonpSerializable_get()java.lang.String_type()Get the of the type of the variant held by this union object.AggregateMetricDoublePropertyaggregateMetricDouble()Get theaggregate_metric_doublevariant value.FieldAliasPropertyalias()Get thealiasvariant value.BinaryPropertybinary()Get thebinaryvariant value.BooleanPropertyboolean_()Get thebooleanvariant 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.DoubleRangePropertydoubleRange()Get thedouble_rangevariant value.FlattenedPropertyflattened()Get theflattenedvariant value.NumberPropertyfloat_()Get thefloatvariant value.FloatRangePropertyfloatRange()Get thefloat_rangevariant value.GeoPointPropertygeoPoint()Get thegeo_pointvariant value.GeoShapePropertygeoShape()Get thegeo_shapevariant value.HistogramPropertyhistogram()Get thehistogramvariant value.IntegerRangePropertyintegerRange()Get theinteger_rangevariant value.IpPropertyip()Get theipvariant value.IpRangePropertyipRange()Get theip_rangevariant value.JoinPropertyjoin()Get thejoinvariant value.KeywordPropertykeyword()Get thekeywordvariant value.LongRangePropertylongRange()Get thelong_rangevariant value.Murmur3HashPropertymurmur3()Get themurmur3variant value.NestedPropertynested()Get thenestedvariant value.ObjectPropertyobject()Get theobjectvariant value.PercolatorPropertypercolator()Get thepercolatorvariant value.PointPropertypoint()Get thepointvariant value.RankFeaturePropertyrankFeature()Get therank_featurevariant value.RankFeaturesPropertyrankFeatures()Get therank_featuresvariant value.SearchAsYouTypePropertysearchAsYouType()Get thesearch_as_you_typevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPropertyDeserializer(DelegatingDeserializer<Property.Builder> op)ShapePropertyshape()Get theshapevariant value.TextPropertytext()Get thetextvariant value.TokenCountPropertytokenCount()Get thetoken_countvariant 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, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
AGGREGATE_METRIC_DOUBLE
public static final java.lang.String AGGREGATE_METRIC_DOUBLE- See Also:
- Constant Field Values
-
BINARY
public static final java.lang.String BINARY- See Also:
- Constant Field Values
-
BOOLEAN
public static final java.lang.String BOOLEAN- See Also:
- Constant Field Values
-
COMPLETION
public static final java.lang.String COMPLETION- See Also:
- Constant Field Values
-
CONSTANT_KEYWORD
public static final java.lang.String CONSTANT_KEYWORD- See Also:
- Constant Field Values
-
DATE_NANOS
public static final java.lang.String DATE_NANOS- See Also:
- Constant Field Values
-
DATE
public static final java.lang.String DATE- See Also:
- Constant Field Values
-
DATE_RANGE
public static final java.lang.String DATE_RANGE- See Also:
- Constant Field Values
-
DENSE_VECTOR
public static final java.lang.String DENSE_VECTOR- See Also:
- Constant Field Values
-
DOUBLE_RANGE
public static final java.lang.String DOUBLE_RANGE- See Also:
- Constant Field Values
-
ALIAS
public static final java.lang.String ALIAS- See Also:
- Constant Field Values
-
FLATTENED
public static final java.lang.String FLATTENED- See Also:
- Constant Field Values
-
FLOAT_RANGE
public static final java.lang.String FLOAT_RANGE- See Also:
- Constant Field Values
-
GEO_POINT
public static final java.lang.String GEO_POINT- See Also:
- Constant Field Values
-
GEO_SHAPE
public static final java.lang.String GEO_SHAPE- See Also:
- Constant Field Values
-
HISTOGRAM
public static final java.lang.String HISTOGRAM- See Also:
- Constant Field Values
-
INTEGER_RANGE
public static final java.lang.String INTEGER_RANGE- See Also:
- Constant Field Values
-
IP
public static final java.lang.String IP- See Also:
- Constant Field Values
-
IP_RANGE
public static final java.lang.String IP_RANGE- See Also:
- Constant Field Values
-
JOIN
public static final java.lang.String JOIN- See Also:
- Constant Field Values
-
KEYWORD
public static final java.lang.String KEYWORD- See Also:
- Constant Field Values
-
LONG_RANGE
public static final java.lang.String LONG_RANGE- See Also:
- Constant Field Values
-
MURMUR3
public static final java.lang.String MURMUR3- See Also:
- Constant Field Values
-
NESTED
public static final java.lang.String NESTED- See Also:
- Constant Field Values
-
FLOAT
public static final java.lang.String FLOAT- See Also:
- Constant Field Values
-
OBJECT
public static final java.lang.String OBJECT- See Also:
- Constant Field Values
-
PERCOLATOR
public static final java.lang.String PERCOLATOR- See Also:
- Constant Field Values
-
POINT
public static final java.lang.String POINT- See Also:
- Constant Field Values
-
RANK_FEATURE
public static final java.lang.String RANK_FEATURE- See Also:
- Constant Field Values
-
RANK_FEATURES
public static final java.lang.String RANK_FEATURES- See Also:
- Constant Field Values
-
SEARCH_AS_YOU_TYPE
public static final java.lang.String SEARCH_AS_YOU_TYPE- See Also:
- Constant Field Values
-
SHAPE
public static final java.lang.String SHAPE- See Also:
- Constant Field Values
-
TEXT
public static final java.lang.String TEXT- See Also:
- Constant Field Values
-
TOKEN_COUNT
public static final java.lang.String TOKEN_COUNT- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION- See Also:
- Constant Field Values
-
WILDCARD
public static final java.lang.String WILDCARD- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Property
-
Property
-
Property
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<JsonpSerializable>- Returns:
- the variant type
-
_get
- Specified by:
_getin interfaceTaggedUnion<JsonpSerializable>
-
aggregateMetricDouble
Get theaggregate_metric_doublevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theaggregate_metric_doublekind.
-
binary
Get thebinaryvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebinarykind.
-
boolean_
Get thebooleanvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thebooleankind.
-
completion
Get thecompletionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thecompletionkind.
-
constantKeyword
Get theconstant_keywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theconstant_keywordkind.
-
dateNanos
Get thedate_nanosvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_nanoskind.
-
date
Get thedatevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedatekind.
-
dateRange
Get thedate_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedate_rangekind.
-
denseVector
Get thedense_vectorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedense_vectorkind.
-
doubleRange
Get thedouble_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thedouble_rangekind.
-
alias
Get thealiasvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thealiaskind.
-
flattened
Get theflattenedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theflattenedkind.
-
floatRange
Get thefloat_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefloat_rangekind.
-
geoPoint
Get thegeo_pointvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_pointkind.
-
geoShape
Get thegeo_shapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thegeo_shapekind.
-
histogram
Get thehistogramvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehistogramkind.
-
integerRange
Get theinteger_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theinteger_rangekind.
-
ip
Get theipvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theipkind.
-
ipRange
Get theip_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theip_rangekind.
-
join
Get thejoinvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thejoinkind.
-
keyword
Get thekeywordvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thekeywordkind.
-
longRange
Get thelong_rangevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelong_rangekind.
-
murmur3
Get themurmur3variant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themurmur3kind.
-
nested
Get thenestedvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thenestedkind.
-
float_
Get thefloatvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thefloatkind.
-
object
Get theobjectvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theobjectkind.
-
percolator
Get thepercolatorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepercolatorkind.
-
point
Get thepointvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepointkind.
-
rankFeature
Get therank_featurevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therank_featurekind.
-
rankFeatures
Get therank_featuresvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of therank_featureskind.
-
searchAsYouType
Get thesearch_as_you_typevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesearch_as_you_typekind.
-
shape
Get theshapevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theshapekind.
-
text
Get thetextvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetextkind.
-
tokenCount
Get thetoken_countvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thetoken_countkind.
-
version
Get theversionvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theversionkind.
-
wildcard
Get thewildcardvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thewildcardkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupPropertyDeserializer
-