Class QueryResponse

All Implemented Interfaces:
AtlanEventStreamResponseInterface, Serializable

public class QueryResponse extends ApiEventStreamResource
Response containing the details of a parsed SQL query.
See Also:
  • Constructor Details

    • QueryResponse

      public QueryResponse(List<QueryResponse> events)
      Create a single consolidated response from multiple events related to the same query. (All ApiEventStreamResource objects must have a List constructor like this, as it is used as part of the response deserialization process, via reflection.)
      Parameters:
      events - detailing the streamed results of a query
    • QueryResponse

      public QueryResponse(String requestId, String errorName, String errorMessage, String errorCode, String queryId, List<List<String>> rows, List<QueryResponse.ColumnDetails> columns, QueryResponse.QueryDetails details)
      All-args constructor needed by Jackson to deserialize individual events. (Used by Jackson as part of the response deserialization process.)
      Parameters:
      requestId - see requestId
      errorName - see errorName
      errorMessage - see errorMessage
      errorCode - see errorCode
      queryId - see queryId
      rows - see rows
      columns - see columns
      details - see details
  • Method Details

    • getRequestId

      public String getRequestId()
      Unique identifier for the request, if there was any error.
    • getErrorName

      public String getErrorName()
      Unique name for the error, if there was any error.
    • getErrorMessage

      public String getErrorMessage()
      Explanation of the error, if there was any error.
    • getErrorCode

      public String getErrorCode()
      Unique code for the error, if there was any error.
    • getQueryId

      public String getQueryId()
      Unique identifier (GUID) for the specific run of the query.
    • getRows

      public List<List<String>> getRows()
      Results of the query. Each element is of the outer list is a single row, while each inner list gives the column values for that row (in order).
    • getColumns

      public List<QueryResponse.ColumnDetails> getColumns()
      Columns that are present in each row of the results. The order of the elements of this list will match the order of the inner list of values for the rows.
    • getDetails

      public QueryResponse.QueryDetails getDetails()
      Details about the query.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class AtlanObject
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class AtlanObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AtlanObject
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class ApiEventStreamResource