File tree 1 file changed +4
-5
lines changed
datastore/src/main/java/com/google/datastore/snippets 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -973,14 +973,13 @@ public void testPropertyByKindRunQuery() {
973
973
public void testPropertyFilteringRunQuery () {
974
974
setUpQueryTests ();
975
975
// [START property_filtering_run_query]
976
- Key key =
977
- datastore .newKeyFactory ()
976
+ Key key = datastore .newKeyFactory ()
978
977
.kind ("__property__" )
979
- .ancestors (PathElement .of ("__kind__" , "Task" ))
980
- .newKey ("priority" );
978
+ .ancestors (PathElement .of ("__kind__" , "Task" ))
979
+ .newKey ("priority" );
981
980
Query <Key > query = Query .keyQueryBuilder ()
982
981
.kind ("__property__" )
983
- .filter (PropertyFilter .ge ("__key__" , key ))
982
+ .filter (PropertyFilter .ge ("__key__" , key ))
984
983
.build ();
985
984
Map <String , Collection <String >> propertiesByKind = new HashMap <>();
986
985
QueryResults <Key > results = datastore .run (query );
You can’t perform that action at this time.
0 commit comments