public class SQLServerConnector extends SQLMetadataConnector
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLServerConnector.CustomStatementRewriter |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_STREAMING_RESULT_SIZE |
DEFAULT_MAX_TRIES| Constructor and Description |
|---|
SQLServerConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
connectorIsTransientException(Throwable e) |
org.skife.jdbi.v2.DBI |
getDBI() |
protected String |
getPayloadType()
SQL type to use for payload data (e.g.
|
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.
|
Void |
insertOrUpdate(String tableName,
String keyColumn,
String valueColumn,
String key,
byte[] value) |
boolean |
tableExists(org.skife.jdbi.v2.Handle handle,
String tableName) |
createAuditTable, createConfigTable, createConfigTable, createDataSourceTable, createDataSourceTable, createEntryTable, createLockTable, createLogTable, createPendingSegmentsTable, createPendingSegmentsTable, createRulesTable, createRulesTable, createSegmentTable, createSegmentTable, createSupervisorsTable, createSupervisorsTable, createTable, createTaskTables, deleteAllRecords, getConfig, getDatasource, getValidationQuery, inReadOnlyTransaction, isTransientException, lookup, lookupWithHandle, retryTransaction, retryWithHandle, retryWithHandlepublic static final int DEFAULT_STREAMING_RESULT_SIZE
@Inject public SQLServerConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables)
protected String getPayloadType()
SQLMetadataConnectorCREATE TABLE druid_table ( payload NOT NULL, ... ) getPayloadType in class SQLMetadataConnectorprotected String getSerialType()
SQLMetadataConnectorCREATE TABLE druid_table ( id NOT NULL, ... ) getSerialType in class SQLMetadataConnectorpublic String getQuoteString()
getQuoteString in class SQLMetadataConnectorprotected int getStreamingFetchSize()
SQLMetadataConnectorgetStreamingFetchSize in class SQLMetadataConnectorpublic boolean tableExists(org.skife.jdbi.v2.Handle handle,
String tableName)
tableExists in class SQLMetadataConnectorpublic Void insertOrUpdate(String tableName, String keyColumn, String valueColumn, String key, byte[] value) throws Exception
insertOrUpdate in interface MetadataStorageConnectorinsertOrUpdate in class SQLMetadataConnectorExceptionpublic org.skife.jdbi.v2.DBI getDBI()
getDBI in class SQLMetadataConnectorprotected boolean connectorIsTransientException(Throwable e)
connectorIsTransientException in class SQLMetadataConnectorSQLException.getSQLState()Copyright © 2011–2017. All rights reserved.