DocSource

Constructors

Link copied to clipboard
fun DocSource()

Types

Link copied to clipboard
Link copied to clipboard
open class OptionalValueDelegate<V>(fieldName: String, fieldType: FieldType<V & Any, *>)
Link copied to clipboard
class OptionalValueDelegateWithDefault<V>(fieldName: String, fieldType: FieldType<V & Any, *>, defaultValue: () -> V & Any)
Link copied to clipboard
Link copied to clipboard
open class RequiredValueDelegate<V>(fieldName: String, fieldType: FieldType<V & Any, *>)

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun fromSource(rawSource: RawSource)
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
operator fun <V> BoundField<V & Any, *>.provideDelegate(thisRef: DocSource, property: KProperty<*>): ReadWriteProperty<DocSource, V?>
operator fun <V> SubFields<V & Any>.provideDelegate(thisRef: DocSource, property: KProperty<*>): ReadWriteProperty<DocSource, V?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun toSource(): Map<String, Any?>
Link copied to clipboard
open override fun toString(): String

Extensions

Link copied to clipboard
fun BaseDocSource.withActionMeta(id: String, routing: String? = null, version: Long? = null, seqNo: Long? = null, primaryTerm: Long? = null): DocSourceAndMeta<IdActionMeta>
fun BaseDocSource.withActionMeta(routing: String? = null, version: Long? = null, seqNo: Long? = null, primaryTerm: Long? = null): DocSourceAndMeta<ActionMeta>

A shortcut to attach action metadata to a document source.