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() |
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() |
void |
start() |
void |
stop() |
boolean |
tableExists(org.skife.jdbi.v2.Handle handle,
String tableName) |
compareAndSwap, connectorIsTransientException, createAuditTable, createConfigTable, createConfigTable, createDataSourceTable, createDataSourceTable, createEntryTable, createLockTable, createLogTable, createPendingSegmentsTable, createPendingSegmentsTable, createRulesTable, createRulesTable, createSegmentTable, createSegmentTable, createSupervisorsTable, createSupervisorsTable, createTable, createTaskTables, deleteAllRecords, getCollation, getConfig, getDatasource, getPayloadType, inReadOnlyTransaction, insertOrUpdate, isTransientException, lookup, lookupWithHandle, 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 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 void start()
public void stop()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.