Class GetSplitsResponse
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.request.FederationResponse
-
- com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
-
- com.amazonaws.athena.connector.lambda.metadata.GetSplitsResponse
-
- All Implemented Interfaces:
AutoCloseable
public class GetSplitsResponse extends MetadataResponse
Represents the output of aGetSplits
operation.
-
-
Constructor Summary
Constructors Constructor Description GetSplitsResponse(String catalogName, Split split)
Constructs a new GetSplitsResponse object.GetSplitsResponse(String catalogName, Set<Split> splits)
Constructs a new GetSplitsResponse object.GetSplitsResponse(String catalogName, Set<Split> splits, String continuationToken)
Constructs a new GetSplitsResponse object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(Object o)
String
getContinuationToken()
Returns the continuation token that, if present, can be used to request the next batch of splits.Set<Split>
getSplits()
Returns the generated splits.int
hashCode()
String
toString()
-
Methods inherited from class com.amazonaws.athena.connector.lambda.metadata.MetadataResponse
getCatalogName, getRequestType
-
-
-
-
Constructor Detail
-
GetSplitsResponse
public GetSplitsResponse(String catalogName, Set<Split> splits, String continuationToken)
Constructs a new GetSplitsResponse object.- Parameters:
catalogName
- The catalog that splits were generated for.splits
- The splits that were generated.continuationToken
- A continuation token that, if present, can be used to request the next batch of splits. This token is opaque and only needs to be understood by the sameMetadataHandler
that produces it.
-
GetSplitsResponse
public GetSplitsResponse(String catalogName, Set<Split> splits)
Constructs a new GetSplitsResponse object. Convenience constructor for when there is no continuation token.- Parameters:
catalogName
- The catalog that splits were generated for.splits
- The splits that were generated.
-
GetSplitsResponse
public GetSplitsResponse(String catalogName, Split split)
Constructs a new GetSplitsResponse object. Convenience constructor for when there is no continuation token and only a single split.- Parameters:
catalogName
- The catalog that splits were generated for.split
- The splits that were generated.
-
-
Method Detail
-
getSplits
public Set<Split> getSplits()
Returns the generated splits.- Returns:
- The splits that were generated.
-
getContinuationToken
public String getContinuationToken()
Returns the continuation token that, if present, can be used to request the next batch of splits.- Returns:
- The continuation token that, if present, can be used to request the next batch of splits.
-
-