RangeType

abstract class RangeType<V>(type: FieldType<V, V>) : FieldType<Range<V>, V>

A base class for range field types.

Parameters

V

the range value type.

type

is a field type corresponding to V type.

Constructors

RangeType
Link copied to clipboard
fun <V> RangeType(type: FieldType<V, V>)
the range value type.

Functions

deserialize
Link copied to clipboard
open override fun deserialize(v: Any, valueFactory: () -> Range<V>?): Range<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 override fun serialize(v: Range<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
open override val name: String
Name of Elasticsearch mapping type.
termType
Link copied to clipboard
open override val termType: KClass<*>
Term class is used inside FieldSet.

Inheritors

IntRangeType
Link copied to clipboard
LongRangeType
Link copied to clipboard
FloatRangeType
Link copied to clipboard
DoubleRangeType
Link copied to clipboard