Query

  • TheQuery object defines constraints on query results, including filters and sort order.

  • A nested class,Query.Builder, exists for creatingQuery objects.

  • Key methods includegetFilter to retrieve filters andgetSortOrder to get sorting information.

  • ThegetPageToken method is deprecated as paging is not supported.

public classQuery extendsObject
implementsParcelable

The query object specifies constraints on a query result, including filters and sort order.

Nested Class Summary

classQuery.BuilderA builder for creating queries. 

Inherited Constant Summary

From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_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()
ReturnsSortOrder containing information about sorting order of the query.
String
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
From interface android.os.Parcelable
abstract int
describeContents()
abstract void
writeToParcel(Parcel arg0, int arg1)

Fields

public static finalCreator<Query>CREATOR

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.