Package com.rockset.client.model
Class QueryResponse
java.lang.Object
com.rockset.client.model.QueryResponse
QueryResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCollectionsItem
(String collectionsItem) addColumnFieldsItem
(QueryFieldType columnFieldsItem) addQueryErrorsItem
(QueryError queryErrorsItem) addResultsItem
(Object resultsItem) addWarningsItem
(String warningsItem) collections
(List<String> collections) columnFields
(List<QueryFieldType> columnFields) boolean
List of collections referenced in the query.Meta information about each column in the result set.If this was a write query, this is the log offset the query was written to.Pagination information.Errors encountered while executing the query.Unique ID for this query.The full path of the executed query lambda.Results from the query.Number of results generated by the query.getStats()
Meta information about the query including execution latencies.Warnings generated by the query.int
hashCode()
lastOffset
(String lastOffset) pagination
(PaginationInfo pagination) queryErrors
(List<QueryError> queryErrors) queryLambdaPath
(String queryLambdaPath) resultsTotalDocCount
(Long resultsTotalDocCount) void
setCollections
(List<String> collections) void
setColumnFields
(List<QueryFieldType> columnFields) void
setLastOffset
(String lastOffset) void
setPagination
(PaginationInfo pagination) void
setQueryErrors
(List<QueryError> queryErrors) void
setQueryId
(String queryId) void
setQueryLambdaPath
(String queryLambdaPath) void
setResults
(List<Object> results) void
setResultsTotalDocCount
(Long resultsTotalDocCount) void
setStats
(QueryResponseStats stats) void
setWarnings
(List<String> warnings) stats
(QueryResponseStats stats) toString()
-
Constructor Details
-
QueryResponse
public QueryResponse()
-
-
Method Details
-
queryId
-
getQueryId
Unique ID for this query.- Returns:
- queryId
-
setQueryId
-
collections
-
addCollectionsItem
-
getCollections
List of collections referenced in the query.- Returns:
- collections
-
setCollections
-
results
-
addResultsItem
-
getResults
Results from the query.- Returns:
- results
-
setResults
-
stats
-
getStats
Meta information about the query including execution latencies.- Returns:
- stats
-
setStats
-
warnings
-
addWarningsItem
-
getWarnings
Warnings generated by the query. Only populated if `generate_warnings` is specified in the query request.- Returns:
- warnings
-
setWarnings
-
queryLambdaPath
-
getQueryLambdaPath
The full path of the executed query lambda. Includes version information.- Returns:
- queryLambdaPath
-
setQueryLambdaPath
-
queryErrors
-
addQueryErrorsItem
-
getQueryErrors
Errors encountered while executing the query.- Returns:
- queryErrors
-
setQueryErrors
-
columnFields
-
addColumnFieldsItem
-
getColumnFields
Meta information about each column in the result set. Not populated in `SELECT *` queries.- Returns:
- columnFields
-
setColumnFields
-
resultsTotalDocCount
-
getResultsTotalDocCount
Number of results generated by the query.- Returns:
- resultsTotalDocCount
-
setResultsTotalDocCount
-
pagination
-
getPagination
Pagination information. Only populated if `paginate` is specified in the query request.- Returns:
- pagination
-
setPagination
-
lastOffset
-
getLastOffset
If this was a write query, this is the log offset the query was written to.- Returns:
- lastOffset
-
setLastOffset
-
equals
-
hashCode
public int hashCode() -
toString
-