public class CloudSQLPostgreSQLConnector extends AbstractDBSpecificConnector<PostgresDBRecord>
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
driverClass, ENTITY_TYPE_DATABASE, ENTITY_TYPE_SCHEMA, RESULTSET_COLUMN_TABLE_CATPLUGIN_TYPE| Constructor and Description |
|---|
CloudSQLPostgreSQLConnector(CloudSQLPostgreSQLConnectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected DBConnectorPath |
getDBConnectorPath(String path) |
protected Class<? extends org.apache.hadoop.mapreduce.lib.db.DBWritable> |
getDBRecordType() |
protected SchemaReader |
getSchemaReader() |
protected String |
getTableQuery(String database,
String schema,
String table) |
protected String |
getTableQuery(String database,
String schema,
String table,
int limit) |
protected void |
setConnectorSpec(ConnectorSpecRequest request,
DBConnectorPath path,
ConnectorSpec.Builder builder) |
boolean |
supportSchema() |
io.cdap.cdap.api.data.format.StructuredRecord |
transform(org.apache.hadoop.io.LongWritable longWritable,
PostgresDBRecord postgresDBRecord) |
getConnection, getConnectionString, getInputFormatProvider, getTableSchema, loadTableSchema, setConnectionPropertiesbrowse, close, configure, generateSpec, getConnection, getConnection, getSchema, getTableDetail, listDatabases, listSchemas, listTables, queryDatabases, test, validateSchemapublic static final String NAME
public CloudSQLPostgreSQLConnector(CloudSQLPostgreSQLConnectorConfig config)
protected DBConnectorPath getDBConnectorPath(String path) throws IOException
getDBConnectorPath in class AbstractDBSpecificConnector<PostgresDBRecord>IOExceptionpublic boolean supportSchema()
supportSchema in class AbstractDBSpecificConnector<PostgresDBRecord>protected Class<? extends org.apache.hadoop.mapreduce.lib.db.DBWritable> getDBRecordType()
getDBRecordType in class AbstractDBSpecificConnector<PostgresDBRecord>public io.cdap.cdap.api.data.format.StructuredRecord transform(org.apache.hadoop.io.LongWritable longWritable, PostgresDBRecord postgresDBRecord)
protected SchemaReader getSchemaReader()
getSchemaReader in class AbstractDBSpecificConnector<PostgresDBRecord>protected String getTableQuery(String database, String schema, String table)
getTableQuery in class AbstractDBSpecificConnector<PostgresDBRecord>protected String getTableQuery(String database, String schema, String table, int limit)
getTableQuery in class AbstractDBSpecificConnector<PostgresDBRecord>protected void setConnectorSpec(ConnectorSpecRequest request, DBConnectorPath path, ConnectorSpec.Builder builder)
setConnectorSpec in class AbstractDBConnectorCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.