public class DerbyConnector extends SQLMetadataConnector
CONFIG_TABLE_KEY_COLUMN, CONFIG_TABLE_VALUE_COLUMN| Constructor and Description |
|---|
DerbyConnector(MetadataStorage storage,
com.google.common.base.Supplier<MetadataStorageConnectorConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables) |
DerbyConnector(MetadataStorage storage,
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 |
|---|---|
void |
exportTable(String tableName,
String outputPath) |
org.skife.jdbi.v2.DBI |
getDBI() |
ResultSet |
getIndexInfo(DatabaseMetaData databaseMetaData,
String tableName)
Get the ResultSet for indexInfo for given table
|
String |
getQuoteString() |
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.
|
int |
getStreamingFetchSize()
Returns the value that should be passed to statement.setFetchSize to ensure results
are streamed back from the database instead of fetching the entire result set in memory.
|
String |
getValidationQuery() |
String |
limitClause(int limit) |
void |
start() |
void |
stop() |
boolean |
tableContainsColumn(org.skife.jdbi.v2.Handle handle,
String table,
String column) |
boolean |
tableExists(org.skife.jdbi.v2.Handle handle,
String tableName) |
compareAndSwap, connectorIsTransientException, createAuditTable, createConfigTable, createConfigTable, createDataSourceTable, createDataSourceTable, createEntryTable, createIndex, createLockTable, createLogTable, createPendingSegmentsTable, createPendingSegmentsTable, createRulesTable, createRulesTable, createSegmentTable, createSegmentTable, createSupervisorsTable, createSupervisorsTable, createTable, createTaskTables, deleteAllRecords, getCollation, getConfig, getDatasource, getIndexOnTable, getPayloadType, inReadOnlyTransaction, insertOrUpdate, isRootCausePacketTooBigException, isTransientException, lookup, lookupWithHandle, makeDatasource, prepareTaskEntryTable, retryTransaction, retryWithHandle, retryWithHandle@Inject public DerbyConnector(MetadataStorage storage, com.google.common.base.Supplier<MetadataStorageConnectorConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables)
public DerbyConnector(MetadataStorage storage, 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 SQLMetadataConnectorpublic boolean tableContainsColumn(org.skife.jdbi.v2.Handle handle,
String table,
String column)
tableContainsColumn in class SQLMetadataConnectorpublic String getSerialType()
SQLMetadataConnectorCREATE TABLE druid_table ( id NOT NULL, ... ) getSerialType in class SQLMetadataConnectorpublic String getQuoteString()
getQuoteString in class SQLMetadataConnectorpublic org.skife.jdbi.v2.DBI getDBI()
getDBI in class SQLMetadataConnectorpublic int getStreamingFetchSize()
SQLMetadataConnectorgetStreamingFetchSize in class SQLMetadataConnectorpublic String getValidationQuery()
getValidationQuery in class SQLMetadataConnectorpublic String limitClause(int limit)
limitClause in class SQLMetadataConnectorpublic ResultSet getIndexInfo(DatabaseMetaData databaseMetaData, String tableName) throws SQLException
getIndexInfo in class SQLMetadataConnectordatabaseMetaData - DatabaseMetaDatatableName - Name of tableSQLExceptionpublic void start()
public void stop()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.