Class S3BucketsTableProvider
- java.lang.Object
-
- com.amazonaws.athena.connectors.aws.cmdb.tables.s3.S3BucketsTableProvider
-
- All Implemented Interfaces:
TableProvider
public class S3BucketsTableProvider extends Object implements TableProvider
Maps your S3 Objects to a table.
-
-
Constructor Summary
Constructors Constructor Description S3BucketsTableProvider(software.amazon.awssdk.services.s3.S3Client amazonS3)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSchema()
The schema name (aka database) that this table provider's table belongs to.GetTableResponse
getTable(BlockAllocator blockAllocator, GetTableRequest getTableRequest)
Provides access to the Schema details of the requested table.TableName
getTableName()
The fully qualified name of the table represented by this TableProvider.void
readWithConstraint(BlockSpiller spiller, ReadRecordsRequest recordsRequest, QueryStatusChecker queryStatusChecker)
Calls DescribeDBInstances on the AWS RDS Client returning all DB Instances that match the supplied predicate and attempting to push down certain predicates (namely queries for specific DB Instance) to EC2.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.athena.connectors.aws.cmdb.tables.TableProvider
enhancePartitionSchema, getPartitions
-
-
-
-
Method Detail
-
getSchema
public String getSchema()
Description copied from interface:TableProvider
The schema name (aka database) that this table provider's table belongs to.- Specified by:
getSchema
in interfaceTableProvider
- Returns:
- String containing the schema name.
-
getTableName
public TableName getTableName()
Description copied from interface:TableProvider
The fully qualified name of the table represented by this TableProvider.- Specified by:
getTableName
in interfaceTableProvider
- Returns:
- The TableName containing the fully qualified name of the Table.
-
getTable
public GetTableResponse getTable(BlockAllocator blockAllocator, GetTableRequest getTableRequest)
Description copied from interface:TableProvider
Provides access to the Schema details of the requested table.- Specified by:
getTable
in interfaceTableProvider
-
readWithConstraint
public void readWithConstraint(BlockSpiller spiller, ReadRecordsRequest recordsRequest, QueryStatusChecker queryStatusChecker)
Calls DescribeDBInstances on the AWS RDS Client returning all DB Instances that match the supplied predicate and attempting to push down certain predicates (namely queries for specific DB Instance) to EC2.- Specified by:
readWithConstraint
in interfaceTableProvider
-
-