Class QueryResult
java.lang.Object
com.azure.analytics.purview.datamap.models.QueryResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryResult>
public final class QueryResult
extends Object
implements com.azure.json.JsonSerializable<QueryResult>
The result of the search result.
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QueryResult from the JsonReader.Get the continuationToken property: The token used to get next batch of data.Get the searchCount property: The total number of search results (not the number of documents in a single page).Get the searchFacets property: A facet list that consists of index fields assetType ,classification, contactId, and label.getValue()Get the value property: Search result value.Get the searchCountApproximate property: 'True' if the '@search.count' is an approximate value and vise versa.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getSearchCount
Get the searchCount property: The total number of search results (not the number of documents in a single page).- Returns:
- the searchCount value.
-
isSearchCountApproximate
Get the searchCountApproximate property: 'True' if the '@search.count' is an approximate value and vise versa.- Returns:
- the searchCountApproximate value.
-
getContinuationToken
Get the continuationToken property: The token used to get next batch of data. Absent if there's no more data.- Returns:
- the continuationToken value.
-
getSearchFacets
Get the searchFacets property: A facet list that consists of index fields assetType ,classification, contactId, and label. When the facet is specified in the request, the value of the facet is returned as an element of @search.facets.- Returns:
- the searchFacets value.
-
getValue
Get the value property: Search result value.- Returns:
- the value value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QueryResult>- Throws:
IOException
-
fromJson
Reads an instance of QueryResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QueryResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the QueryResult.
-