Class DatabasePrinter

java.lang.Object
com.activeviam.database.api.DatabasePrinter

public final class DatabasePrinter extends Object
Print content of a database version: tables.
Author:
ActiveViam
  • Field Details Link icon

    • NO_SIZE_LIMIT Link icon

      public static final int NO_SIZE_LIMIT
      Constant to set as maxRows parameter in methods below, to print all rows.
      See Also:
  • Method Details Link icon

    • printTables Link icon

      public static void printTables(IDatabaseVersion databaseVersion, int maxRows)
      Prints all tables at a given epoch, with the given maximum number of rows.
      Parameters:
      databaseVersion - version to print
      maxRows - maximum number of rows to print for each table. Use NO_SIZE_LIMIT to print all rows.
    • printTable Link icon

      public static void printTable(IDatabaseVersion databaseVersion, String tableName, int maxRows)
      Prints a table at a given epoch, with the given maximum number of rows.
      Parameters:
      databaseVersion - the version to print
      tableName - the name of the table to print
      maxRows - maximum number of rows to print for each table. Use NO_SIZE_LIMIT to print all rows.
    • printTableSizes Link icon

      public static void printTableSizes(IDatabaseVersion databaseVersion)
      Prints the sizes of all tables in the database version.
      Parameters:
      databaseVersion - the database
    • printTableSizes Link icon

      public static void printTableSizes(IStatisticsQueryRunner statisticsQueryRunner, long epochId)
      Prints the sizes of all tables in the schema.
      Parameters:
      statisticsQueryRunner - the statisticsQueryRunner
      epochId - the epochId