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 Details

    • getSearchCount

      public Integer 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

      public Boolean isSearchCountApproximate()
      Get the searchCountApproximate property: 'True' if the '@search.count' is an approximate value and vise versa.
      Returns:
      the searchCountApproximate value.
    • getContinuationToken

      public String 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

      public SearchFacetResultValue 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

      public List<SearchResultValue> getValue()
      Get the value property: Search result value.
      Returns:
      the value value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<QueryResult>
      Throws:
      IOException
    • fromJson

      public static QueryResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.