Package com.ibm.fhir.database.utils.db2
Class Db2GetPartitionInfo
- java.lang.Object
-
- com.ibm.fhir.database.utils.db2.Db2GetPartitionInfo
-
- All Implemented Interfaces:
IDatabaseStatement
public class Db2GetPartitionInfo extends Object implements IDatabaseStatement
Functional wrapper to get the catalog information
-
-
Constructor Summary
Constructors Constructor Description Db2GetPartitionInfo(String catalogSchema, String tableSchema, Consumer<PartitionInfo> consumer)
Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run(IDatabaseTranslator translator, Connection c)
Execute the statement using the connection.static String
unwrap(String value)
The high/low values look like this: '2017-01-01-00.00.00.000000'.
-
-
-
Constructor Detail
-
Db2GetPartitionInfo
public Db2GetPartitionInfo(String catalogSchema, String tableSchema, Consumer<PartitionInfo> consumer)
Get partition information for all tables in the tableSchema, using the catalogSchema as the schema containing the DATAPARTITIONS system table- Parameters:
catalogSchema
-tableSchema
-consumer
-
-
-
Method Detail
-
run
public void run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
-