Skip to content

Commit

Permalink
Merge pull request #94 from GoogleCloudPlatform/datastore-indentation…
Browse files Browse the repository at this point in the history
…-fix

Indentation fix in datastore samples
  • Loading branch information
Shun Fan committed Feb 16, 2016
2 parents 2c88e44 + 859a981 commit 2604810
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 2604810

Please sign in to comment.