Search in sources :

Example 1 with AWSGlue

use of com.amazonaws.services.glue.AWSGlue in project streamliner by phdata.

the class GlueCrawler method getTables.

private List<Table> getTables(String region, String database) {
    AWSGlue client = AWSGlueClient.builder().withRegion(region).build();
    GetTablesResult tables = client.getTables(new GetTablesRequest().withDatabaseName(database));
    return tables.getTableList();
}
Also used : GetTablesResult(com.amazonaws.services.glue.model.GetTablesResult) AWSGlue(com.amazonaws.services.glue.AWSGlue) GetTablesRequest(com.amazonaws.services.glue.model.GetTablesRequest)

Aggregations

AWSGlue (com.amazonaws.services.glue.AWSGlue)1 GetTablesRequest (com.amazonaws.services.glue.model.GetTablesRequest)1 GetTablesResult (com.amazonaws.services.glue.model.GetTablesResult)1