CompactCondition class
Isar databases can contain unused space that will be reused for later operations. You can specify conditions to trigger manual compaction where the entire database is copied and unused space freed.
This operation can only be performed while a database is being opened and should only be used if absolutely necessary.
Constructors
- CompactCondition({int? minFileSize, int? minBytes, double? minRatio})
-
Compaction will happen if all of the specified conditions are true.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- minBytes → int?
-
The minimum number of bytes that can be freed with compaction.
final
- minFileSize → int?
-
The minimum size in bytes of the database file to trigger compaction. It
is highly discouraged to trigger compaction solely on this condition.
final
- minRatio → double?
-
The minimum compaction ration. For example
2.0
would trigger compaction as soon as the file size can be halved.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited