Class GetTableLayoutResponse
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationResponse
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
-
- com.amazonaws.athena.connector.lambda.metadata.GetTableLayoutResponse
-
- All Implemented Interfaces:
AutoCloseable
public class GetTableLayoutResponse extends MetadataResponse
Represents the output of aGetTableLayoutoperation.
-
-
Constructor Summary
Constructors Constructor Description GetTableLayoutResponse(String catalogName, TableName tableName, Block partitions)Constructs a new GetTableLayoutResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Frees up resources associated with thepartitionsBlock.booleanequals(Object o)BlockgetPartitions()Returns the partitions representing the table layout.TableNamegetTableName()Returns the table name that a table layout was generated for.inthashCode()StringtoString()-
Methods inherited from class com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
getCatalogName, getRequestType
-
-
-
-
Constructor Detail
-
GetTableLayoutResponse
public GetTableLayoutResponse(String catalogName, TableName tableName, Block partitions)
Constructs a new GetTableLayoutResponse object.- Parameters:
catalogName- The catalog name that a table layout was generated for.tableName- The table name that a table layout was generated for.partitions- The partitions representing the table layout.
-
-
Method Detail
-
getTableName
public TableName getTableName()
Returns the table name that a table layout was generated for.- Returns:
- The table name that a table layout was generated for.
-
getPartitions
public Block getPartitions()
Returns the partitions representing the table layout.- Returns:
- The partitions representing the table layout.
-
close
public void close() throws ExceptionFrees up resources associated with thepartitionsBlock.- Throws:
Exception
-
-