Class SearchFacetItem
java.lang.Object
com.azure.analytics.purview.datamap.models.SearchFacetItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchFacetItem>
public final class SearchFacetItem
extends Object
implements com.azure.json.JsonSerializable<SearchFacetItem>
The content of a search facet result item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchFacetItemfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchFacetItem from the JsonReader.getCount()Get the count property: The count of the facet item.getFacet()Get the facet property: The name of the facet item.getSort()Get the sort property: Define the sorting criteria for items.Set the count property: The count of the facet item.Set the facet property: The name of the facet item.setSort(SearchFacetSort sort) Set the sort property: Define the sorting criteria for items.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
-
Constructor Details
-
SearchFacetItem
public SearchFacetItem()Creates an instance of SearchFacetItem class.
-
-
Method Details
-
getCount
Get the count property: The count of the facet item.- Returns:
- the count value.
-
setCount
Set the count property: The count of the facet item.- Parameters:
count- the count value to set.- Returns:
- the SearchFacetItem object itself.
-
getFacet
Get the facet property: The name of the facet item.- Returns:
- the facet value.
-
setFacet
Set the facet property: The name of the facet item.- Parameters:
facet- the facet value to set.- Returns:
- the SearchFacetItem object itself.
-
getSort
Get the sort property: Define the sorting criteria for items.- Returns:
- the sort value.
-
setSort
Set the sort property: Define the sorting criteria for items.- Parameters:
sort- the sort value to set.- Returns:
- the SearchFacetItem object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchFacetItem>- Throws:
IOException
-
fromJson
Reads an instance of SearchFacetItem from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchFacetItem 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 SearchFacetItem.
-