DynDocSource

Constructors

Link copied to clipboard
Link copied to clipboard
fun DynDocSource(rawSource: RawSource)
Link copied to clipboard
fun DynDocSource(setup: (DynDocSource) -> Unit)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun fromSource(rawSource: RawSource)
Link copied to clipboard
operator fun <V : SubDocument> get(subDoc: V): DynDocSource?
operator fun <V> get(field: BoundField<V, *>): V?
operator fun <V> get(field: SubFields<V>): V?
operator fun get(name: String): Any?
Link copied to clipboard
operator fun <V : SubDocument> set(subDoc: V, value: DynDocSource?)
operator fun <V> set(field: BoundField<V, *>, value: V?)
operator fun <V> set(field: SubFields<V>, value: V?)
operator fun set(name: String, value: Any?)
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.