Class QueryOptions
java.lang.Object
com.azure.analytics.purview.datamap.models.QueryOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryOptions>
public final class QueryOptions
extends Object
implements com.azure.json.JsonSerializable<QueryOptions>
The search query of advanced search request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of QueryOptions from the JsonReader.Get the continuationToken property: The token used to get next batch of data.Get the facets property: The facets for search.com.azure.core.util.BinaryDataGet the filter property: The filter for the search.Get the keywords property: The keywords applied to all searchable fields.getLimit()Get the limit property: The limit of the number of the search result. default value is 50; maximum value is 1000.List<com.azure.core.util.BinaryData> Get the orderby property: The sort order of search results, can specify multiple fields.Get the taxonomySetting property: The taxonomy setting for search.setContinuationToken(String continuationToken) Set the continuationToken property: The token used to get next batch of data.setFacets(List<SearchFacetItem> facets) Set the facets property: The facets for search.setFilter(com.azure.core.util.BinaryData filter) Set the filter property: The filter for the search.setKeywords(String keywords) Set the keywords property: The keywords applied to all searchable fields.Set the limit property: The limit of the number of the search result. default value is 50; maximum value is 1000.setOrderby(List<com.azure.core.util.BinaryData> orderby) Set the orderby property: The sort order of search results, can specify multiple fields.setTaxonomySetting(SearchTaxonomySetting taxonomySetting) Set the taxonomySetting property: The taxonomy setting for search.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
-
QueryOptions
public QueryOptions()Creates an instance of QueryOptions class.
-
-
Method Details
-
getKeywords
Get the keywords property: The keywords applied to all searchable fields.- Returns:
- the keywords value.
-
setKeywords
Set the keywords property: The keywords applied to all searchable fields.- Parameters:
keywords- the keywords value to set.- Returns:
- the QueryOptions object itself.
-
getLimit
Get the limit property: The limit of the number of the search result. default value is 50; maximum value is 1000.- Returns:
- the limit value.
-
setLimit
Set the limit property: The limit of the number of the search result. default value is 50; maximum value is 1000.- Parameters:
limit- the limit value to set.- Returns:
- the QueryOptions object itself.
-
getContinuationToken
Get the continuationToken property: The token used to get next batch of data. Default 'Null' to get the first batch, and will return new token in each response unless there's no more data.- Returns:
- the continuationToken value.
-
setContinuationToken
Set the continuationToken property: The token used to get next batch of data. Default 'Null' to get the first batch, and will return new token in each response unless there's no more data.- Parameters:
continuationToken- the continuationToken value to set.- Returns:
- the QueryOptions object itself.
-
getOrderby
Get the orderby property: The sort order of search results, can specify multiple fields.- Returns:
- the orderby value.
-
setOrderby
Set the orderby property: The sort order of search results, can specify multiple fields.- Parameters:
orderby- the orderby value to set.- Returns:
- the QueryOptions object itself.
-
getFilter
public com.azure.core.util.BinaryData getFilter()Get the filter property: The filter for the search. See examples for the usage of supported filters.- Returns:
- the filter value.
-
setFilter
Set the filter property: The filter for the search. See examples for the usage of supported filters.- Parameters:
filter- the filter value to set.- Returns:
- the QueryOptions object itself.
-
getFacets
Get the facets property: The facets for search. See examples for the usage of supported facets.- Returns:
- the facets value.
-
setFacets
Set the facets property: The facets for search. See examples for the usage of supported facets.- Parameters:
facets- the facets value to set.- Returns:
- the QueryOptions object itself.
-
getTaxonomySetting
Get the taxonomySetting property: The taxonomy setting for search.- Returns:
- the taxonomySetting value.
-
setTaxonomySetting
Set the taxonomySetting property: The taxonomy setting for search.- Parameters:
taxonomySetting- the taxonomySetting value to set.- Returns:
- the QueryOptions object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<QueryOptions>- Throws:
IOException
-
fromJson
Reads an instance of QueryOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of QueryOptions 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 QueryOptions.
-