Class DBOptimize

All Implemented Interfaces:
Comparable<DBUpdate>

public final class DBOptimize extends DBUpdate
Update primitive for the optimize function.
Author:
BaseX Team 2005-21, BSD License, Dimitar Popov
  • Constructor Details

    • DBOptimize

      public DBOptimize(Data data, boolean all, Options opts, QueryContext qc, InputInfo info) throws QueryException
      Constructor.
      Parameters:
      data - data
      all - optimize all database structures flag
      opts - database options
      qc - database context
      info - input info
      Throws:
      QueryException - query exception
  • Method Details

    • prepare

      public void prepare()
      Description copied from class: DBUpdate
      Prepares this operation.
      Specified by:
      prepare in class DBUpdate
    • apply

      public void apply() throws QueryException
      Description copied from class: DBUpdate
      Applies this operation.
      Specified by:
      apply in class DBUpdate
      Throws:
      QueryException - exception
    • merge

      public void merge(Update update)
      Description copied from class: Update
      Merges two update operations pointing to the same target.
      Specified by:
      merge in class Update
      Parameters:
      update - operation to merge with
    • size

      public int size()
      Description copied from class: Update
      Returns the number of update operations.
      Specified by:
      size in class Update
      Returns:
      number of updates