NamedMatches

class NamedMatches(val name: String, in: Matches) : Matches

Utility class to help extract the set of sub queries that have matched from a larger query.

Individual subqueries may be wrapped using [wrapQuery], and the matching queries for a particular document can then be pulled from the parent [Query]'s [Matches] object by calling [findNamedMatches].

Constructors

Link copied to clipboard
constructor(name: String, in: Matches)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the name of this Matches

Link copied to clipboard

Returns a collection of Matches that make up this instance; if it is not a composite, then this returns an empty list

Functions

Link copied to clipboard
open override fun getMatches(field: String): MatchesIterator?

Returns a MatchesIterator over the matches for a single field, or null if there are no matches in that field.

Link copied to clipboard
open operator override fun iterator(): Iterator<String>