public interface FirebaseRestQuery
FirebaseRestQuery is create by a FirebaseRestReference and represents the same location as the
creating REST reference. It allows for querying the location with the various different sort and filter
mechanisms that Firebase supports.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all previously provided sorting and filtering values.
|
FirebaseRestQuery |
endAt(java.lang.Object value)
Return items less than or equal to the specified key, value, or priority, depending on the order-by method chosen.
|
FirebaseRestQuery |
equalTo(java.lang.Object value)
Return items equal to the specified key, value, or priority, depending on the order-by method chosen.
|
FirebaseRestQuery |
limitToFirst(int number)
Sets the maximum number of items to return from the beginning of the ordered list of results.
|
FirebaseRestQuery |
limitToLast(int number)
Sets the maximum number of items to return from the end of the ordered list of results.
|
FirebaseRestQuery |
orderByChild(java.lang.String name)
Order results by the value of a specified child name.
|
FirebaseRestQuery |
orderByKey()
Order results by child keys.
|
FirebaseRestQuery |
orderByPriority()
Order results by the assigned priority.
|
FirebaseRestQuery |
orderByValue()
Order results by child values.
|
<T> org.jdeferred.Promise<T,FirebaseRuntimeException,java.lang.Void> |
run(java.lang.Class<T> clazz)
Executes the query with the previously provided sorting and filtering arguments.
|
FirebaseRestQuery |
startAt(java.lang.Object value)
Return items greater than or equal to the specified key, value, or priority, depending on the order-by method chosen.
|
FirebaseRestQuery startAt(java.lang.Object value)
value - The starting value of the result set.FirebaseRestQuery reference.FirebaseRestQuery endAt(java.lang.Object value)
value - The ending value of the result set.FirebaseRestQuery reference.FirebaseRestQuery equalTo(java.lang.Object value)
value - The value all results must be equal to.FirebaseRestQuery reference.FirebaseRestQuery limitToFirst(int number)
number - Number of results to be returned.FirebaseRestQuery reference.FirebaseRestQuery limitToLast(int number)
number - Number of results to be returned.FirebaseRestQuery reference.FirebaseRestQuery orderByKey()
FirebaseRestQuery reference.FirebaseRestQuery orderByChild(java.lang.String name)
FirebaseRestQuery reference.FirebaseRestQuery orderByPriority()
FirebaseRestQuery reference.FirebaseRestQuery orderByValue()
FirebaseRestQuery reference.void clear()
<T> org.jdeferred.Promise<T,FirebaseRuntimeException,java.lang.Void> run(java.lang.Class<T> clazz)
FirebaseRuntimeException in the case that
access to the data for this reference was denied.
FirebaseRuntimeException in the case that an
unexpected status code was returned or the deserialization of the response into the type parameter fails.
T - The type of the result object.clazz - The Class type for the POJO to be created for the data returned by the request.