FacetRequestOptions Class
- java.
lang. Object - com.
microsoft. azure. management. resourcegraph. v2019_04_01.FacetRequestOptions
- com.
public class FacetRequestOptions
The options for facet evaluation.
Constructor Summary
Constructor | Description | |
---|---|---|
FacetRequestOptions() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filter()
Get specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. |
java.lang.String |
sortBy()
Get the column name or query expression to sort on. |
Facet |
sortOrder()
Get the sorting order by the selected column (count by default). |
java.lang.Integer |
top()
Get the maximum number of facet rows that should be returned. |
Facet |
withFilter(String filter)
Set specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting. |
Facet |
withSortBy(String sortBy)
Set the column name or query expression to sort on. |
Facet |
withSortOrder(FacetSortOrder sortOrder)
Set the sorting order by the selected column (count by default). |
Facet |
withTop(Integer top)
Set the maximum number of facet rows that should be returned. |
Methods inherited from java.lang.Object
Constructor Details
FacetRequestOptions
public FacetRequestOptions()
Method Details
filter
public String filter()
Get specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting.
Returns:
sortBy
public String sortBy()
Get the column name or query expression to sort on. Defaults to count if not present.
Returns:
sortOrder
public FacetSortOrder sortOrder()
Get the sorting order by the selected column (count by default). Possible values include: 'asc', 'desc'.
Returns:
top
public Integer top()
Get the maximum number of facet rows that should be returned.
Returns:
withFilter
public FacetRequestOptions withFilter(String filter)
Set specifies the filter condition for the 'where' clause which will be run on main query's result, just before the actual faceting.
Parameters:
Returns:
withSortBy
public FacetRequestOptions withSortBy(String sortBy)
Set the column name or query expression to sort on. Defaults to count if not present.
Parameters:
Returns:
withSortOrder
public FacetRequestOptions withSortOrder(FacetSortOrder sortOrder)
Set the sorting order by the selected column (count by default). Possible values include: 'asc', 'desc'.
Parameters:
Returns:
withTop
public FacetRequestOptions withTop(Integer top)
Set the maximum number of facet rows that should be returned.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for