stream

@GenerateBridge
open fun stream(query: String, vararg params: Any?): Stream<Entity>

Find entities matching a query, with optional indexed parameters. This method is a shortcut for find(query, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

optional sequence of indexed parameters

See also


@GenerateBridge
open fun stream(query: String, sort: Sort, vararg params: Any?): Stream<Entity>

Find entities matching a query and the given sort options, with optional indexed parameters. This method is a shortcut for find(query, sort, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

optional sequence of indexed parameters

See also


@GenerateBridge
open fun stream(query: String, params: Map<String, Any?>): Stream<Entity>

Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

Map of named parameters

See also


@GenerateBridge
open fun stream(query: String, sort: Sort, params: Map<String, Any?>): Stream<Entity>

Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

Map of indexed parameters

See also


@GenerateBridge
open fun stream(query: String, params: Parameters): Stream<Entity>

Find entities matching a query, with named parameters. This method is a shortcut for find(query, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

params

Parameters of named parameters

See also


@GenerateBridge
open fun stream(query: String, sort: Sort, params: Parameters): Stream<Entity>

Find entities matching a query and the given sort options, with named parameters. This method is a shortcut for find(query, sort, params).stream().

Return

a Stream containing all results, without paging

Parameters

query

a query string

sort

the sort strategy to use

params

Parameters of indexed parameters

See also


@GenerateBridge
open fun stream(query: Document): Stream<Entity>

Find entities using a BSON query. This method is a shortcut for find(query).stream().

Return

a Stream containing all results, without paging

Parameters

query

a Document query

See also


@GenerateBridge
open fun stream(query: Document, sort: Document): Stream<Entity>

Find entities using a BSON query and a BSON sort. This method is a shortcut for find(query, sort).stream().

Return

a Stream containing all results, without paging

Parameters

query

a Document query

sort

the Document sort

See also