BoundField

open class BoundField<V, T>(name: String, type: FieldType<V, T>, params: Params, parent: FieldSet) : MappingField<T>

Represents field of a specific type. Usually it can be accessed as a document property.

Parameters

name
  • name of the field

type
  • type of the field

params
  • mapping parameters

parent
  • the FieldSet object to which the field is bound

Constructors

BoundField
Link copied to clipboard
fun <V, T> BoundField(name: String, type: FieldType<V, T>, params: Params, parent: FieldSet)
  • name of the field

Functions

asc
Link copied to clipboard
open fun asc(mode: Sort.Mode? = null, numericType: Sort.NumericType? = null, missing: Sort.Missing? = null, unmappedType: FieldType<*, *>? = null, nested: Sort.Nested? = null): Sort
desc
Link copied to clipboard
open fun desc(mode: Sort.Mode? = null, numericType: Sort.NumericType? = null, missing: Sort.Missing? = null, unmappedType: FieldType<*, *>? = null, nested: Sort.Nested? = null): Sort
deserializeTerm
Link copied to clipboard
open fun deserializeTerm(v: Any): T
eq
Link copied to clipboard
open infix fun eq(term: T?): QueryExpression
open fun eq(term: T?, boost: Double? = null): QueryExpression
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
format
Link copied to clipboard
open fun format(format: String? = null): FieldFormat
getFieldName
Link copied to clipboard
open override fun getFieldName(): String
getFieldType
Link copied to clipboard
open override fun getFieldType(): FieldType<V, T>
getMappingParams
Link copied to clipboard
open override fun getMappingParams(): Params
getParent
Link copied to clipboard
fun getParent(): FieldSet
getQualifiedFieldName
Link copied to clipboard
open override fun getQualifiedFieldName(): String
gt
Link copied to clipboard
open infix fun gt(other: T?): Range<T>
gte
Link copied to clipboard
open infix fun gte(other: T?): Range<T>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
lt
Link copied to clipboard
open infix fun lt(other: T?): Range<T>
lte
Link copied to clipboard
open infix fun lte(other: T?): Range<T>
ne
Link copied to clipboard
open infix fun ne(term: T?): QueryExpression
open fun ne(term: T?, boost: Double? = null): QueryExpression
oneOf
Link copied to clipboard
open infix fun oneOf(terms: List<T>): QueryExpression
range
Link copied to clipboard
open fun range(gt: T? = null, gte: T? = null, lt: T? = null, lte: T? = null, boost: Double? = null): Range<T>
serializeTerm
Link copied to clipboard
open fun serializeTerm(v: T): Any
toValue
Link copied to clipboard
open override fun toValue(): String

Inheritors

BoundJoinField
Link copied to clipboard
BoundRuntimeField
Link copied to clipboard
MetaFields
Link copied to clipboard
MetaFields
Link copied to clipboard
MetaFields
Link copied to clipboard
MetaFields
Link copied to clipboard

Extensions

list
Link copied to clipboard
fun <V, T> BoundField<V, T>.list(): BoundField<MutableList<V?>, T>