IndexStatistics class
Statistics about an index for query optimization.
These statistics help the optimizer estimate query costs and choose the most efficient execution strategy.
- Annotations
-
- @immutable
Constructors
- IndexStatistics({required String field, required IndexType indexType, required int cardinality, required int totalEntries})
-
Creates index statistics.
const
Properties
- averageEntriesPerKey → double
-
Average number of entities per unique key.
no setter
- cardinality → int
-
Number of unique keys in the index.
final
- field → String
-
The field name this index covers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexType → IndexType
-
The type of index (hash or btree).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectivity → double
-
Estimated selectivity (0.0 to 1.0).
no setter
- totalEntries → int
-
Total number of entity references in the index.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited