Class GetTableLayoutRequest
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationRequest
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataRequest
-
- com.amazonaws.athena.connector.lambda.metadata.GetTableLayoutRequest
-
- All Implemented Interfaces:
AutoCloseable
public class GetTableLayoutRequest extends MetadataRequest
Represents the input of aGetTableLayoutoperation.
-
-
Constructor Summary
Constructors Constructor Description GetTableLayoutRequest(FederatedIdentity identity, String queryId, String catalogName, TableName tableName, Constraints constraints, org.apache.arrow.vector.types.pojo.Schema schema, Set<String> partitionCols)Constructs a new GetTableLayoutRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Frees up resources associated with theconstraintsBlock.booleanequals(Object o)ConstraintsgetConstraints()Returns the constraints that can be applied to table layout generation.Set<String>getPartitionCols()Returns the partition columns that can be used for table layout generation.org.apache.arrow.vector.types.pojo.SchemagetSchema()Returns the table's schema.TableNamegetTableName()Returns the table name to generate a table layout for.inthashCode()StringtoString()-
Methods inherited from class com.amazonaws.athena.connector.lambda.metadata.MetadataRequest
getCatalogName, getContext, getQueryId, getRequestType, setContext
-
Methods inherited from class com.amazonaws.athena.connector.lambda.request.FederationRequest
getIdentity
-
-
-
-
Constructor Detail
-
GetTableLayoutRequest
public GetTableLayoutRequest(FederatedIdentity identity, String queryId, String catalogName, TableName tableName, Constraints constraints, org.apache.arrow.vector.types.pojo.Schema schema, Set<String> partitionCols)
Constructs a new GetTableLayoutRequest object.- Parameters:
identity- The identity of the caller.queryId- The ID of the query requesting metadata.catalogName- The catalog name that the table layout should be generated for.tableName- The table name that the table layout should be generated for.constraints- The constraints that can be applied to table layout generation.schema- The table's schema.partitionCols- The partition columns that can be used for table layout generation.
-
-
Method Detail
-
getTableName
public TableName getTableName()
Returns the table name to generate a table layout for.- Returns:
- The table name to generate a table layout for.
-
getConstraints
public Constraints getConstraints()
Returns the constraints that can be applied to table layout generation.- Returns:
- The constraints that can be applied to table layout generation.
-
getSchema
public org.apache.arrow.vector.types.pojo.Schema getSchema()
Returns the table's schema.- Returns:
- The table's schema.
-
getPartitionCols
public Set<String> getPartitionCols()
Returns the partition columns that can be used for table layout generation.- Returns:
- The partition columns that can be used for table layout generation.
-
close
public void close() throws ExceptionFrees up resources associated with theconstraintsBlock.- Throws:
Exception
-
-