public class QueryPartition extends Object
getStartAt() and getEndBefore() can only be used in a
query that matches the constraint of query that produced this partition.| Constructor and Description |
|---|
QueryPartition(Query query,
Object[] startAt,
Object[] endBefore) |
| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery()
Returns a query that only returns the documents for this partition.
|
boolean |
equals(Object o) |
Object[] |
getEndBefore()
The cursor that defines the first result after this partition.
|
Object[] |
getStartAt()
The cursor that defines the first result for this partition.
|
int |
hashCode() |
@Nullable public Object[] getStartAt()
null if this is the first
partition.Query.startAt(Object...) or null
if this is the first partition.@Nullable public Object[] getEndBefore()
null if this is the last
partition.Query.endBefore(Object...) or null
if this is the last partition.public Query createQuery()
Query.startAt(Object...) and Query.endBefore(Object...) cursor.Copyright © 2023 Google LLC. All rights reserved.