Query Stay organized with collections Save and categorize content based on your preferences.
Page Summary
The
Queryobject defines constraints on query results, including filters and sort order.A nested class,
Query.Builder, exists for creatingQueryobjects.Key methods include
getFilterto retrieve filters andgetSortOrderto get sorting information.The
getPageTokenmethod is deprecated as paging is not supported.
The query object specifies constraints on a query result, including filters and sort order.
Nested Class Summary
| class | Query.Builder | A builder for creating queries. | |
Inherited Constant Summary
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Field Summary
| public static finalCreator<Query> | CREATOR |
Public Method Summary
| Filter | getFilter() Get the filters that will restrict the query results. |
| String | getPageToken() This method is deprecated. Paging is not supported. |
| SortOrder | getSortOrder() Returns SortOrder containing information about sorting order of the query. |
| String | toString() |
| void | writeToParcel(Parcel out, int flags) |
Inherited Method Summary
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Fields
Public Methods
publicFiltergetFilter()
Get the filters that will restrict the query results.
publicStringgetPageToken()
This method is deprecated.
Paging is not supported.
A token that indicates the next page of results to retrieve. This should be a token that was returned in a previous query.
publicSortOrdergetSortOrder()
ReturnsSortOrder containing information about sorting order of the query. Can benull when no sorting order is added to the query.
publicStringtoString()
public voidwriteToParcel(Parcel out, int flags)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.