Fusion class

Constructors

Fusion({List<BackendStatus> backends = const [], List<Hit> hits = const [], String? mode, String? status, int? tookMs})
Returns a new Fusion instance.

Properties

backends ↔ List<BackendStatus>
Backends is the per-leg report. Always populated.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hits ↔ List<Hit>
Hits is the fused, ranked result set.
getter/setter pair
mode ↔ String?
Mode is the mode actually used after auto resolution.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the query's overall honesty signal: ok every consulted leg answered. partial at least one leg failed; Hits holds the survivors' results. unavailable every consulted leg failed; Hits is empty AND that is stated.
getter/setter pair
tookMs ↔ int?
TookMS is the whole query's wall time in milliseconds — every leg it consulted, plus fusion and paging. Each leg's own share is in Backends[].TookMS; the legs run in sequence, so this is at least their sum.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Fusion?
Returns a new Fusion instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Fusion>
mapFromJson(dynamic json) → Map<String, Fusion>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Fusion>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.