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 java.lang.Object implements IDatabaseStatement
Functional wrapper to get the catalog information
-
-
Constructor Summary
Constructors Constructor Description Db2GetPartitionInfo(java.lang.String catalogSchema, java.lang.String tableSchema, java.util.function.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 voidrun(IDatabaseTranslator translator, java.sql.Connection c)Execute the statement using the connection.static java.lang.Stringunwrap(java.lang.String value)The high/low values look like this: '2017-01-01-00.00.00.000000'.
-
-
-
Constructor Detail
-
Db2GetPartitionInfo
public Db2GetPartitionInfo(java.lang.String catalogSchema, java.lang.String tableSchema, java.util.function.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, java.sql.Connection c)
Description copied from interface:IDatabaseStatementExecute the statement using the connection.- Specified by:
runin interfaceIDatabaseStatement- Parameters:
translator- to translate any exceptions
-
unwrap
public static java.lang.String unwrap(java.lang.String value)
The high/low values look like this: '2017-01-01-00.00.00.000000'. We want this: 2017-01-01- Parameters:
value-- Returns:
-
-