Class Analyze


public class Analyze extends DefineCommand
This class represents the statements ANALYZE and ANALYZE TABLE
  • Field Details

    • sampleRows

      private int sampleRows
      The sample size.
    • table

      private Table table
      used in ANALYZE TABLE...
  • Constructor Details

  • Method Details

    • setTable

      public void setTable(Table table)
    • update

      public long update()
      Description copied from class: Prepared
      Execute the statement.
      Overrides:
      update in class Prepared
      Returns:
      the update count
    • analyzeTable

      public static void analyzeTable(SessionLocal session, Table table, int sample, boolean manual)
      Analyze this table.
      Parameters:
      session - the session
      table - the table
      sample - the number of sample rows
      manual - whether the command was called by the user
    • setTop

      public void setTop(int top)
    • getType

      public int getType()
      Description copied from class: Prepared
      Get the command type as defined in CommandInterface
      Specified by:
      getType in class Prepared
      Returns:
      the statement type