AbstractElasticsearchQueryBackend

A query backend over one index. Before the aggregate's first write its index does not exist yet; every read of a missing index answers nothing (no rows, a count of 0, no groups), as the snapshot store's load does, rather than failing.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
abstract val elasticsearchClient: ReactiveElasticsearchClient
Link copied to clipboard
abstract val indexName: String

Functions

Link copied to clipboard
open override fun aggregate(query: AdmittedQuery<AggregationQuery>, window: GroupWindow): Flux<ObjectNode>

A missing index has no groups; without any, the core emits the empty summary, as it does over no records.

Link copied to clipboard
open override fun count(query: AdmittedQuery<FilterExpression>): Mono<Long>
Link copied to clipboard
open override fun page(query: AdmittedQuery<Queryable<*>>, window: PageWindow): Mono<BackendPage>
Link copied to clipboard
open override fun stream(query: AdmittedQuery<IListQuery>): Flux<ObjectNode>