Class ReadRecordsRequest
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationRequest
-
- com.amazonaws.athena.connector.lambda.records.RecordRequest
-
- com.amazonaws.athena.connector.lambda.records.ReadRecordsRequest
-
- All Implemented Interfaces:
AutoCloseable
public class ReadRecordsRequest extends RecordRequest
Represents the input of aReadRecordsoperation.
-
-
Constructor Summary
Constructors Constructor Description ReadRecordsRequest(FederatedIdentity identity, String catalogName, String queryId, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Split split, Constraints constraints, long maxBlockSize, long maxInlineBlockSize)Constructs a new ReadRecordsRequest 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 to apply to read records.longgetMaxBlockSize()Returns the maximum supported block size.longgetMaxInlineBlockSize()Returns the maximum block size before spilling.org.apache.arrow.vector.types.pojo.SchemagetSchema()Returns the schema of the table being read from.SplitgetSplit()Returns he split being read.TableNamegetTableName()Returns the name of the table being read from.inthashCode()StringtoString()-
Methods inherited from class com.amazonaws.athena.connector.lambda.records.RecordRequest
getCatalogName, getQueryId, getRequestType
-
Methods inherited from class com.amazonaws.athena.connector.lambda.request.FederationRequest
getIdentity
-
-
-
-
Constructor Detail
-
ReadRecordsRequest
public ReadRecordsRequest(FederatedIdentity identity, String catalogName, String queryId, TableName tableName, org.apache.arrow.vector.types.pojo.Schema schema, Split split, Constraints constraints, long maxBlockSize, long maxInlineBlockSize)
Constructs a new ReadRecordsRequest object.- Parameters:
identity- The identity of the caller.catalogName- The catalog name that records should be read for.queryId- The ID of the query requesting data.tableName- The name of the table being read from.schema- The schema of the table being read from.split- The split being read.constraints- The constraints to apply to read records.maxBlockSize- The maximum supported block size.maxInlineBlockSize- The maximum block size before spilling.
-
-
Method Detail
-
getTableName
public TableName getTableName()
Returns the name of the table being read from.- Returns:
- The name of the table being read from.
-
getSchema
public org.apache.arrow.vector.types.pojo.Schema getSchema()
Returns the schema of the table being read from.- Returns:
- The schema of the table being read from.
-
getSplit
public Split getSplit()
Returns he split being read.- Returns:
- The split being read.
-
getMaxInlineBlockSize
public long getMaxInlineBlockSize()
Returns the maximum block size before spilling.- Returns:
- The maximum block size before spilling.
-
getMaxBlockSize
public long getMaxBlockSize()
Returns the maximum supported block size.- Returns:
- The maximum supported block size.
-
getConstraints
public Constraints getConstraints()
Returns the constraints to apply to read records.- Returns:
- The constraints to apply to read records.
-
close
public void close() throws ExceptionFrees up resources associated with theconstraintsBlock.- Throws:
Exception
-
-