The CompactConfig type exposes the following members.

Fields

  NameDescription
returnEnd
Return the database key marking the end of the compaction operation in a Btree or Recno database. This is generally the first key of the page where the operation stopped.
start
If non-null, the starting point for compaction. For a Btree or Recno database compaction will start at the smallest key greater than or equal to the starting point. For a Hash database the compaction will start in the bucket specified by the integer stored in the starting point. If null, compaction will start at the beginning of the database.
stop
If non-null, the stopping point for compaction. For a Btree or Recno database compaction will stop at the page with the smallest key greater than the stopping point. For a Hash database compaction will stop in the bucked specified by the integer stored in the stopping point. If null, compaction will stop at the end of the database.
TruncatePages
If true, return pages to the filesystem when possible. If false, pages emptied as a result of compaction will be placed on the free list for re-use, but never returned to the filesystem.

See Also