public class DerbyConnector extends SQLMetadataConnector
| Constructor and Description |
|---|
DerbyConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables) |
DerbyConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables,
org.skife.jdbi.v2.DBI dbi) |
| Modifier and Type | Method and Description |
|---|---|
org.skife.jdbi.v2.DBI |
getDBI() |
protected String |
getSerialType()
Auto-incrementing SQL type to use for IDs
Must be an integer type, which values will be automatically set by the database
The resulting string will be interpolated into the table creation statement, e.g.
|
String |
getValidationQuery() |
boolean |
tableExists(org.skife.jdbi.v2.Handle handle,
String tableName) |
createAuditTable, createConfigTable, createConfigTable, createEntryTable, createLockTable, createLogTable, createRulesTable, createRulesTable, createSegmentTable, createSegmentTable, createTable, createTaskTables, getConfig, getDatasource, getPayloadType, insertOrUpdate, isTransientException, lookup@Inject public DerbyConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables)
public DerbyConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables, org.skife.jdbi.v2.DBI dbi)
public boolean tableExists(org.skife.jdbi.v2.Handle handle,
String tableName)
tableExists in class SQLMetadataConnectorprotected String getSerialType()
SQLMetadataConnectorCREATE TABLE druid_table ( id NOT NULL, ... ) getSerialType in class SQLMetadataConnectorpublic org.skife.jdbi.v2.DBI getDBI()
getDBI in class SQLMetadataConnectorpublic String getValidationQuery()
getValidationQuery in class SQLMetadataConnectorCopyright © 2011–2015. All rights reserved.