Package com.google.cloud.firestore
Class QueryPartition
java.lang.Object
com.google.cloud.firestore.QueryPartition
A split point that can be used in a query as a starting and/or end point for the query results.
The cursors returned by
getStartAt() and getEndBefore() can only be used in a
query that matches the constraint of query that produced this partition.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QueryPartition
-
-
Method Details
-
getStartAt
The cursor that defines the first result for this partition.nullif this is the first partition.- Returns:
- a cursor value that can be used with
Query.startAt(Object...)ornullif this is the first partition.
-
getEndBefore
The cursor that defines the first result after this partition.nullif this is the last partition.- Returns:
- a cursor value that can be used with
Query.endBefore(Object...)ornullif this is the last partition.
-
createQuery
Returns a query that only returns the documents for this partition.- Returns:
- a query partitioned by a
Query.startAt(Object...)andQuery.endBefore(Object...)cursor.
-
equals
-
hashCode
public int hashCode()
-