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 class
Property.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Property>
_DESERIALIZER
static java.lang.String
AGGREGATE_METRIC_DOUBLE
static java.lang.String
ALIAS
static java.lang.String
BINARY
static java.lang.String
BOOLEAN
static java.lang.String
COMPLETION
static java.lang.String
CONSTANT_KEYWORD
static java.lang.String
DATE
static java.lang.String
DATE_NANOS
static java.lang.String
DATE_RANGE
static java.lang.String
DENSE_VECTOR
static java.lang.String
DOUBLE_RANGE
static java.lang.String
FLATTENED
static java.lang.String
FLOAT
static java.lang.String
FLOAT_RANGE
static java.lang.String
GEO_POINT
static java.lang.String
GEO_SHAPE
static java.lang.String
HISTOGRAM
static java.lang.String
INTEGER_RANGE
static java.lang.String
IP
static java.lang.String
IP_RANGE
static java.lang.String
JOIN
static java.lang.String
KEYWORD
static java.lang.String
LONG_RANGE
static java.lang.String
MURMUR3
static java.lang.String
NESTED
static java.lang.String
OBJECT
static java.lang.String
PERCOLATOR
static java.lang.String
POINT
static java.lang.String
RANK_FEATURE
static java.lang.String
RANK_FEATURES
static java.lang.String
SEARCH_AS_YOU_TYPE
static java.lang.String
SHAPE
static java.lang.String
TEXT
static java.lang.String
TOKEN_COUNT
static java.lang.String
VERSION
static java.lang.String
WILDCARD
-
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.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.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.DoubleRangeProperty
doubleRange()
Get thedouble_range
variant value.FlattenedProperty
flattened()
Get theflattened
variant value.NumberProperty
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.HistogramProperty
histogram()
Get thehistogram
variant value.IntegerRangeProperty
integerRange()
Get theinteger_range
variant value.IpProperty
ip()
Get theip
variant value.IpRangeProperty
ipRange()
Get theip_range
variant value.JoinProperty
join()
Get thejoin
variant value.KeywordProperty
keyword()
Get thekeyword
variant value.LongRangeProperty
longRange()
Get thelong_range
variant value.Murmur3HashProperty
murmur3()
Get themurmur3
variant value.NestedProperty
nested()
Get thenested
variant value.ObjectProperty
object()
Get theobject
variant value.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.SearchAsYouTypeProperty
searchAsYouType()
Get thesearch_as_you_type
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupPropertyDeserializer(DelegatingDeserializer<Property.Builder> op)
ShapeProperty
shape()
Get theshape
variant value.TextProperty
text()
Get thetext
variant value.TokenCountProperty
tokenCount()
Get thetoken_count
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
Methods 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:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
aggregateMetricDouble
Get theaggregate_metric_double
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theaggregate_metric_double
kind.
-
binary
Get thebinary
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thebinary
kind.
-
boolean_
Get theboolean
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theboolean
kind.
-
completion
Get thecompletion
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecompletion
kind.
-
constantKeyword
Get theconstant_keyword
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theconstant_keyword
kind.
-
dateNanos
Get thedate_nanos
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_nanos
kind.
-
date
Get thedate
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate
kind.
-
dateRange
Get thedate_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedate_range
kind.
-
denseVector
Get thedense_vector
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedense_vector
kind.
-
doubleRange
Get thedouble_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thedouble_range
kind.
-
alias
Get thealias
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thealias
kind.
-
flattened
Get theflattened
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theflattened
kind.
-
floatRange
Get thefloat_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefloat_range
kind.
-
geoPoint
Get thegeo_point
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_point
kind.
-
geoShape
Get thegeo_shape
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thegeo_shape
kind.
-
histogram
Get thehistogram
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehistogram
kind.
-
integerRange
Get theinteger_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theinteger_range
kind.
-
ip
Get theip
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theip
kind.
-
ipRange
Get theip_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theip_range
kind.
-
join
Get thejoin
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thejoin
kind.
-
keyword
Get thekeyword
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thekeyword
kind.
-
longRange
Get thelong_range
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelong_range
kind.
-
murmur3
Get themurmur3
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themurmur3
kind.
-
nested
Get thenested
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thenested
kind.
-
float_
Get thefloat
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thefloat
kind.
-
object
Get theobject
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theobject
kind.
-
percolator
Get thepercolator
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepercolator
kind.
-
point
Get thepoint
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepoint
kind.
-
rankFeature
Get therank_feature
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therank_feature
kind.
-
rankFeatures
Get therank_features
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of therank_features
kind.
-
searchAsYouType
Get thesearch_as_you_type
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesearch_as_you_type
kind.
-
shape
Get theshape
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theshape
kind.
-
text
Get thetext
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetext
kind.
-
tokenCount
Get thetoken_count
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thetoken_count
kind.
-
version
Get theversion
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of theversion
kind.
-
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
-