Class GetTableResponse
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationResponse
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
-
- com.amazonaws.athena.connector.lambda.metadata.GetTableResponse
-
- All Implemented Interfaces:
AutoCloseable
public class GetTableResponse extends MetadataResponse
Represents the output of aGetTable
operation.
-
-
Constructor Summary
Constructors Constructor Description GetTableResponse(String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema)
Constructs a new GetTableResponse object.GetTableResponse(String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Set<String> partitionColumns)
Constructs a new GetTableResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
Set<String>
getPartitionColumns()
Returns partition column names of the table.org.apache.arrow.vector.types.pojo.Schema
getSchema()
Returns the schema of the table.TableName
getTableName()
Returns the name of the table.int
hashCode()
String
toString()
-
Methods inherited from class com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
getCatalogName, getRequestType
-
-
-
-
Constructor Detail
-
GetTableResponse
public GetTableResponse(String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Set<String> partitionColumns)
Constructs a new GetTableResponse object.- Parameters:
catalogName
- The catalog name the table belongs to.tableName
- The name of the table (must be lowercase).schema
- The schema of the table.partitionColumns
- The partition column names of the table.
-
GetTableResponse
public GetTableResponse(String catalogName, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema)
Constructs a new GetTableResponse object. This constructor populates an empty set for the partition column names.- Parameters:
catalogName
- The catalog name the table belongs to.tableName
- The name of the table that was fetched.schema
- The schema of the table.
-
-
Method Detail
-
getTableName
public TableName getTableName()
Returns the name of the table.- Returns:
- The name of the table.
-
getSchema
public org.apache.arrow.vector.types.pojo.Schema getSchema()
Returns the schema of the table.- Returns:
- The schema of the table.
-
getPartitionColumns
public Set<String> getPartitionColumns()
Returns partition column names of the table.- Returns:
- The partition column names of the table.
-
-