public class PostgreSQLConnector extends SQLMetadataConnector
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_STREAMING_RESULT_SIZE |
CONFIG_TABLE_KEY_COLUMN, CONFIG_TABLE_VALUE_COLUMN| Constructor and Description |
|---|
PostgreSQLConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config,
com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canUpsert(org.skife.jdbi.v2.Handle handle) |
protected boolean |
connectorIsTransientException(Throwable e) |
org.skife.jdbi.v2.DBI |
getDBI() |
protected String |
getPayloadType() |
String |
getQuoteString() |
protected String |
getSerialType() |
protected int |
getStreamingFetchSize() |
Void |
insertOrUpdate(String tableName,
String keyColumn,
String valueColumn,
String key,
byte[] value) |
boolean |
tableExists(org.skife.jdbi.v2.Handle handle,
String tableName) |
compareAndSwap, 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 PostgreSQLConnector(com.google.common.base.Supplier<MetadataStorageConnectorConfig> config, com.google.common.base.Supplier<MetadataStorageTablesConfig> dbTables)
protected String getPayloadType()
getPayloadType in class SQLMetadataConnectorprotected String getSerialType()
getSerialType in class SQLMetadataConnectorpublic String getQuoteString()
getQuoteString in class SQLMetadataConnectorprotected int getStreamingFetchSize()
getStreamingFetchSize in class SQLMetadataConnectorprotected boolean canUpsert(org.skife.jdbi.v2.Handle handle)
throws SQLException
SQLExceptionpublic 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 SQLMetadataConnectorCopyright © 2011–2018. All rights reserved.