public static final class KeyQuery.Builder extends Object
KeyQuery
builder for queries that return Key
results.Modifier and Type | Method and Description |
---|---|
B |
addOrderBy(StructuredQuery.OrderBy orderBy,
StructuredQuery.OrderBy... others)
Adds settings to the existing order by clause.
|
KeyQuery |
build() |
B |
clearOrderBy()
Clears any previously specified order by settings.
|
B |
setEndCursor(Cursor endCursor)
Sets the end cursor for the query.
|
B |
setFilter(StructuredQuery.Filter filter) |
B |
setKind(String kind)
Sets the kind for the query.
|
B |
setLimit(Integer limit)
Sets the limit for the query.
|
B |
setNamespace(String namespace)
Sets the namespace for the query.
|
B |
setOffset(int offset)
Sets the offset for the query.
|
B |
setOrderBy(StructuredQuery.OrderBy orderBy,
StructuredQuery.OrderBy... others)
Sets the query's order by clause (clearing any previously specified order by settings).
|
B |
setStartCursor(Cursor startCursor)
Sets the start cursor for the query.
|
public KeyQuery build()
public B setNamespace(String namespace)
StructuredQuery.Builder
setNamespace
in interface StructuredQuery.Builder<V>
public B setKind(String kind)
StructuredQuery.Builder
setKind
in interface StructuredQuery.Builder<V>
public B setStartCursor(Cursor startCursor)
StructuredQuery.Builder
setStartCursor
in interface StructuredQuery.Builder<V>
public B setEndCursor(Cursor endCursor)
StructuredQuery.Builder
setEndCursor
in interface StructuredQuery.Builder<V>
public B setOffset(int offset)
StructuredQuery.Builder
setOffset
in interface StructuredQuery.Builder<V>
public B setLimit(Integer limit)
StructuredQuery.Builder
setLimit
in interface StructuredQuery.Builder<V>
public B setFilter(StructuredQuery.Filter filter)
setFilter
in interface StructuredQuery.Builder<V>
public B clearOrderBy()
StructuredQuery.Builder
clearOrderBy
in interface StructuredQuery.Builder<V>
public B setOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.Builder
setOrderBy
in interface StructuredQuery.Builder<V>
public B addOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.Builder
addOrderBy
in interface StructuredQuery.Builder<V>
Copyright © 2019 Google LLC. All rights reserved.