NumberType

abstract class NumberType<V : Number> : SimpleFieldType<V>

Base class for numeric field types.

See: https://www.elastic.co/guide/en/elasticsearch/reference/current/number.html

Constructors

NumberType
Link copied to clipboard
fun NumberType()

Functions

deserialize
Link copied to clipboard
abstract fun deserialize(v: Any, valueFactory: () -> V? = null): V
Deserializes field value from Elasticsearch.
deserializeTerm
Link copied to clipboard
open override fun deserializeTerm(v: Any): V
Deserializes term value from Elasticsearch.
serialize
Link copied to clipboard
open fun serialize(v: V): Any
Serializes field value to Elasticsearch.
serializeTerm
Link copied to clipboard
open override fun serializeTerm(v: V): Any
Serializes term value to Elasticsearch.

Properties

name
Link copied to clipboard
abstract val name: String
Name of Elasticsearch mapping type.
termType
Link copied to clipboard
abstract val termType: KClass<*>
Term class is used inside FieldSet.

Inheritors

ByteType
Link copied to clipboard
ShortType
Link copied to clipboard
IntType
Link copied to clipboard
LongType
Link copied to clipboard
FloatType
Link copied to clipboard
DoubleType
Link copied to clipboard