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

Link copied to clipboard
fun <V> RangeType(type: FieldType<V, V>)

Functions

Link copied to clipboard
open override fun deserialize(v: Any, valueFactory: () -> Range<V>?): Range<V>

Deserializes field value from Elasticsearch.

Link copied to clipboard
open override fun deserializeTerm(v: Any): V & Any

Deserializes term value from Elasticsearch.

Link copied to clipboard
open override fun serialize(v: Range<V>): Any

Serializes field value to Elasticsearch.

Link copied to clipboard
open override fun serializeTerm(v: V & Any): Any

Serializes term value to Elasticsearch.

Properties

Link copied to clipboard
open override val name: String

Name of Elasticsearch mapping type.

Link copied to clipboard
open override val termType: KClass<*>

Term class is used inside FieldSet.getFieldByName method to check term type before casting.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard