Class RecordRequest
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationRequest
-
- com.amazonaws.athena.connector.lambda.records.RecordRequest
-
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ReadRecordsRequest
public abstract class RecordRequest extends FederationRequest
Parent class representing the generic input of allRecord
operations.
-
-
Constructor Summary
Constructors Constructor Description RecordRequest(FederatedIdentity identity, RecordRequestType requestType, String catalogName, String queryId)
Constructs a new RecordRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalogName()
Returns the catalog name that data is requested for.String
getQueryId()
Returns the ID of the query requesting data.RecordRequestType
getRequestType()
Returns the type of the request.-
Methods inherited from class com.amazonaws.athena.connector.lambda.request.FederationRequest
getIdentity
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
RecordRequest
public RecordRequest(FederatedIdentity identity, RecordRequestType requestType, String catalogName, String queryId)
Constructs a new RecordRequest object.- Parameters:
identity
- The identity of the caller.requestType
- The type of the request.catalogName
- The catalog name that data is requested for.queryId
- The ID of the query requesting data.
-
-
Method Detail
-
getRequestType
public RecordRequestType getRequestType()
Returns the type of the request.- Returns:
- The type of the request.
-
getCatalogName
public String getCatalogName()
Returns the catalog name that data is requested for.- Returns:
- The catalog name that data is requested for.
-
getQueryId
public String getQueryId()
Returns the ID of the query requesting data.- Returns:
- The ID of the query requesting data.
-
-