Class Db2As400RecordHandler
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.handlers.RecordHandler
-
- com.amazonaws.athena.connectors.jdbc.manager.JdbcRecordHandler
-
- com.amazonaws.athena.connectors.db2as400.Db2As400RecordHandler
-
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestStreamHandler
public class Db2As400RecordHandler extends JdbcRecordHandler
-
-
Field Summary
-
Fields inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcRecordHandler
queryPassthrough
-
Fields inherited from class com.amazonaws.athena.connector.lambda.handlers.RecordHandler
configOptions
-
-
Constructor Summary
Constructors Constructor Description Db2As400RecordHandler(DatabaseConnectionConfig databaseConnectionConfig, Map<String,String> configOptions)
Constructs object of type JdbcRecordHandler.Db2As400RecordHandler(Map<String,String> configOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreparedStatement
buildSplitSql(Connection jdbcConnection, String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Constraints constraints, Split split)
Builds split SQL string and returns prepared statement.-
Methods inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcRecordHandler
buildQueryPassthroughSql, getCredentialProvider, getJdbcConnectionFactory, makeExtractor, makeFactory, readWithConstraint
-
Methods inherited from class com.amazonaws.athena.connector.lambda.handlers.RecordHandler
doHandleRequest, doReadRecords, getSecret, getSpillConfig, handleRequest, onPing, resolveSecrets
-
-
-
-
Constructor Detail
-
Db2As400RecordHandler
public Db2As400RecordHandler(DatabaseConnectionConfig databaseConnectionConfig, Map<String,String> configOptions)
Constructs object of type JdbcRecordHandler.- Parameters:
databaseConnectionConfig
-
-
-
Method Detail
-
buildSplitSql
public PreparedStatement buildSplitSql(Connection jdbcConnection, String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Constraints constraints, Split split) throws SQLException
Builds split SQL string and returns prepared statement.- Specified by:
buildSplitSql
in classJdbcRecordHandler
- Parameters:
jdbcConnection
- jdbc connection. SeeConnection
catalogName
- Athena provided catalog name.tableName
- database table name.schema
- table schema.constraints
- constraints to push down to the database.split
- table split.- Returns:
- Throws:
SQLException
-
-