Package org.h2.table

Class InformationSchemaTable

All Implemented Interfaces:
HasSQL

public final class InformationSchemaTable extends MetaTable
This class is responsible to build the INFORMATION_SCHEMA tables.
  • Field Details

    • META_TABLE_TYPE_COUNT

      public static final int META_TABLE_TYPE_COUNT
      The number of meta table types. Supported meta table types are 0..META_TABLE_TYPE_COUNT - 1.
      See Also:
  • Constructor Details

    • InformationSchemaTable

      public InformationSchemaTable(Schema schema, int id, int type)
      Create a new metadata table.
      Parameters:
      schema - the schema
      id - the object id
      type - the meta table type
  • Method Details

    • generateRows

      public ArrayList<Row> generateRows(SessionLocal session, SearchRow first, SearchRow last)
      Description copied from class: MetaTable
      Generate the data for the given metadata table using the given first and last row filters.
      Specified by:
      generateRows in class MetaTable
      Parameters:
      session - the session
      first - the first row to return
      last - the last row to return
      Returns:
      the generated rows
    • getMaxDataModificationId

      public long getMaxDataModificationId()
      Description copied from class: Table
      Get the last data modification id.
      Specified by:
      getMaxDataModificationId in class Table
      Returns:
      the modification id
    • isView

      public boolean isView()
      Overrides:
      isView in class Table
    • getRowCount

      public long getRowCount(SessionLocal session)
      Description copied from class: Table
      Get the row count for this table.
      Overrides:
      getRowCount in class MetaTable
      Parameters:
      session - the session
      Returns:
      the row count
    • getRowCountApproximation

      public long getRowCountApproximation(SessionLocal session)
      Description copied from class: Table
      Get the approximated row count for this table.
      Overrides:
      getRowCountApproximation in class MetaTable
      Parameters:
      session - the session
      Returns:
      the approximated row count
    • canGetRowCount

      public boolean canGetRowCount(SessionLocal session)
      Description copied from class: Table
      Check if the row count can be retrieved quickly.
      Overrides:
      canGetRowCount in class MetaTable
      Parameters:
      session - the session
      Returns:
      true if it can