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 aGetTableLayout
operation.
-
-
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 void
close()
Frees up resources associated with thepartitions
Block.boolean
equals(Object o)
Block
getPartitions()
Returns the partitions representing the table layout.TableName
getTableName()
Returns the table name that a table layout was generated for.int
hashCode()
String
toString()
-
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 Exception
Frees up resources associated with thepartitions
Block.- Throws:
Exception
-
-