Skip to content

Indentation fix in datastore samples #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Indentation fix
  • Loading branch information
Ajay Kannan committed Feb 16, 2016
commit 859a9816f036396e74c2fd002ae7fa165263366a
Original file line number Diff line number Diff line change
Expand Up @@ -973,14 +973,13 @@ public void testPropertyByKindRunQuery() {
public void testPropertyFilteringRunQuery() {
setUpQueryTests();
// [START property_filtering_run_query]
Key key =
datastore.newKeyFactory()
Key key = datastore.newKeyFactory()
.kind("__property__")
.ancestors(PathElement.of("__kind__", "Task"))
.newKey("priority");
.ancestors(PathElement.of("__kind__", "Task"))
.newKey("priority");
Query<Key> query = Query.keyQueryBuilder()
.kind("__property__")
.filter(PropertyFilter.ge("__key__", key))
.filter(PropertyFilter.ge("__key__", key))
.build();
Map<String, Collection<String>> propertiesByKind = new HashMap<>();
QueryResults<Key> results = datastore.run(query);
Expand Down