Class GetSplitsResponse

  • All Implemented Interfaces:
    AutoCloseable

    public class GetSplitsResponse
    extends MetadataResponse
    Represents the output of a GetSplits operation.
    • 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 same MetadataHandler 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object