Package com.activeviam.database.api
Class DatabasePrinter
java.lang.Object
com.activeviam.database.api.DatabasePrinter
Print content of a database version: tables.
- Author:
- ActiveViam
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Constant to set as maxRows parameter in methods below, to print all rows. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
printTable
(IDatabaseVersion databaseVersion, String tableName, int maxRows) Prints a table at a given epoch, with the given maximum number of rows.static void
printTables
(IDatabaseVersion databaseVersion, int maxRows) Prints all tables at a given epoch, with the given maximum number of rows.static void
printTableSizes
(IDatabaseVersion databaseVersion) Prints the sizes of all tables in the database version.static void
printTableSizes
(IStatisticsQueryRunner statisticsQueryRunner, long epochId) Prints the sizes of all tables in the schema.
-
Field Details
-
Method Details
-
printTables
Prints all tables at a given epoch, with the given maximum number of rows.- Parameters:
databaseVersion
- version to printmaxRows
- maximum number of rows to print for each table. UseNO_SIZE_LIMIT
to print all rows.
-
printTable
Prints a table at a given epoch, with the given maximum number of rows.- Parameters:
databaseVersion
- the version to printtableName
- the name of the table to printmaxRows
- maximum number of rows to print for each table. UseNO_SIZE_LIMIT
to print all rows.
-
printTableSizes
Prints the sizes of all tables in the database version.- Parameters:
databaseVersion
- the database
-
printTableSizes
Prints the sizes of all tables in the schema.- Parameters:
statisticsQueryRunner
- the statisticsQueryRunnerepochId
- the epochId
-