public class DerbyConnector extends SQLMetadataConnector
DEFAULT_MAX_TRIES
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 |
---|---|
org.skife.jdbi.v2.DBI |
getDBI() |
String |
getQuoteString() |
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.
|
protected 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) |
connectorIsTransientException, createAuditTable, createConfigTable, createConfigTable, createDataSourceTable, createDataSourceTable, createEntryTable, createLockTable, createLogTable, createPendingSegmentsTable, createPendingSegmentsTable, createRulesTable, createRulesTable, createSegmentTable, createSegmentTable, createSupervisorsTable, createSupervisorsTable, createTable, createTaskTables, deleteAllRecords, 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 SQLMetadataConnector
protected String getSerialType()
SQLMetadataConnector
CREATE TABLE druid_table ( id NOT NULL, ... )
getSerialType
in class SQLMetadataConnector
public String getQuoteString()
getQuoteString
in class SQLMetadataConnector
public org.skife.jdbi.v2.DBI getDBI()
getDBI
in class SQLMetadataConnector
protected int getStreamingFetchSize()
SQLMetadataConnector
getStreamingFetchSize
in class SQLMetadataConnector
public String getValidationQuery()
getValidationQuery
in class SQLMetadataConnector
public void start()
public void stop()
Copyright © 2011–2017. All rights reserved.