DenseVector

class DenseVector<T : Number>(elementType: VectorElementType<T>, dims: Short? = null, index: Boolean? = null, similarity: VectorSimilarity? = null, indexOptions: Params? = null, params: Params? = null) : AbstractListType<T>

Constructors

Link copied to clipboard
constructor(elementType: VectorElementType<T>, dims: Short? = null, index: Boolean? = null, similarity: VectorSimilarity? = null, indexOptions: Params? = null, params: Params? = null)

Types

Link copied to clipboard
object Companion

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.

Link copied to clipboard

Functions

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

Deserializes field value from Elasticsearch.

Link copied to clipboard
open override fun deserializeTerm(v: Any): List<T>

Deserializes term value from Elasticsearch.

Link copied to clipboard
open override fun params(): Params
Link copied to clipboard
open override fun serialize(v: List<T>): Any

Serializes field value to Elasticsearch.

Link copied to clipboard
open override fun serializeTerm(v: List<T>): Any

Serializes term value to Elasticsearch.