ShardStat
public struct ShardStat
Represents statistics for a shard in the database.
- Properties:
- docCount: The total number of documents in the shard.
- fieldRanges: A dictionary mapping field names to their respective minimum and maximum values.
The values are represented as
AnyHashable
to allow for flexibility in data types.
-
Undocumented
Declaration
Swift
public let docCount: Int
-
Undocumented
Declaration
Swift
public let fieldRanges: [String : (min: AnyHashable, max: AnyHashable)]
-
Evaluates whether the current instance matches any of the provided predicates.
Declaration
Swift
public func matchesAny(predicates: [(field: String, op: QueryOperator)]) -> Bool
Parameters
predicates
An array of tuples where each tuple contains:
field
: The name of the field to evaluate.op
: The query operator to apply for the evaluation.
Return Value
A Boolean value indicating whether any of the predicates match.