BaseDateTimeType

abstract class BaseDateTimeType<V> : SimpleFieldType<V>

Base class for date types. Core module doesn't provide any specific implementations. One of implementation you can find inside kotlinx-datetime module.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun deserialize(v: Any, valueFactory: () -> V? = null): V & Any

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 fun serialize(v: V & Any): 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
abstract val termType: KClass<*>

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