Package com.atlan.model.admin
Class QueryResponse
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiEventStreamResource
com.atlan.model.admin.QueryResponse
- All Implemented Interfaces:
AtlanEventStreamResponseInterface
,Serializable
Response containing the details of a parsed SQL query.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Details about an asset that was queried, in case of errors.static final class
Details about the columns that were returned from a query that was run.static final class
Details about the type of column that was returned from a query that was run.static final class
Details about a query that was run.Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ConstructorDescriptionQueryResponse
(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.QueryResponse
(List<QueryResponse> events) Create a single consolidated response from multiple events related to the same query. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Columns that are present in each row of the results.Details about the query.Unique code for the error, if there was any error.Explanation of the error, if there was any error.Unique name for the error, if there was any error.Unique identifier (GUID) for the specific run of the query.Unique identifier for the request, if there was any error.getRows()
Results of the query.int
hashCode()
toString()
Methods inherited from class com.atlan.net.ApiEventStreamResource
getLastResponse, request, request, setLastResponse
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
QueryResponse
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
- seerequestId
errorName
- seeerrorName
errorMessage
- seeerrorMessage
errorCode
- seeerrorCode
queryId
- seequeryId
rows
- seerows
columns
- seecolumns
details
- seedetails
-
-
Method Details
-
getRequestId
Unique identifier for the request, if there was any error. -
getErrorName
Unique name for the error, if there was any error. -
getErrorMessage
Explanation of the error, if there was any error. -
getErrorCode
Unique code for the error, if there was any error. -
getQueryId
Unique identifier (GUID) for the specific run of the query. -
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
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 therows
. -
getDetails
Details about the query. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classApiEventStreamResource
-