Skip to content

Commit ebdf778

Browse files
committed
rename projectQueryBuilder method to projectionEntityQueryBuilder for consistency
1 parent cad5720 commit ebdf778

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.google.gcloud</groupId>
55
<artifactId>gcloud-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.0.1</version>
7+
<version>0.0.2</version>
88
<name>GCloud Java</name>
99
<url>https://github.com/GoogleCloudPlatform/gcloud-java</url>
1010
<description>

src/main/java/com/google/gcloud/datastore/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public static KeyQueryBuilder keyQueryBuilder() {
224224
/**
225225
* Returns a new {@link StructuredQuery} builder for projection queries.
226226
*/
227-
public static ProjectionEntityQueryBuilder projectionQueryBuilder() {
227+
public static ProjectionEntityQueryBuilder projectionEntityQueryBuilder() {
228228
return new ProjectionEntityQueryBuilder();
229229
}
230230
}

src/main/java/com/google/gcloud/datastore/StructuredQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
* <p>A less trivial example of a projection query that returns the first 10 results
6666
* of "age" and "name" properties (sorted and grouped by "age") with an age greater than 18
6767
* <pre>{@code
68-
* Query&lt;ProjectionEntity&gt; query = Query.projectionQueryBuilder()
68+
* Query&lt;ProjectionEntity&gt; query = Query.projectionEntityQueryBuilder()
6969
* .kind(kind)
7070
* .projection(Projection.property("age"), Projection.first("name"))
7171
* .filter(PropertyFilter.gt("age", 18))

src/test/java/com/google/gcloud/datastore/DatastoreServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public void testRunStructuredQuery() {
412412
assertFalse(results2.hasNext());
413413

414414
StructuredQuery<ProjectionEntity> keyOnlyProjectionQuery =
415-
Query.projectionQueryBuilder()
415+
Query.projectionEntityQueryBuilder()
416416
.kind(KIND1).projection(Projection.property("__key__")).build();
417417
QueryResults<ProjectionEntity> results3 = datastore.run(keyOnlyProjectionQuery);
418418
assertTrue(results3.hasNext());
@@ -421,7 +421,7 @@ public void testRunStructuredQuery() {
421421
assertTrue(projectionEntity.names().isEmpty());
422422
assertFalse(results2.hasNext());
423423

424-
StructuredQuery<ProjectionEntity> projectionQuery = Query.projectionQueryBuilder()
424+
StructuredQuery<ProjectionEntity> projectionQuery = Query.projectionEntityQueryBuilder()
425425
.kind(KIND2)
426426
.projection(Projection.property("age"), Projection.first("name"))
427427
.filter(PropertyFilter.gt("age", 18))

src/test/java/com/google/gcloud/datastore/SerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class SerializationTest {
6767
.kind("k")
6868
.filter(PropertyFilter.eq("p1", "hello"))
6969
.build();
70-
private static final Query<ProjectionEntity> QUERY3 = Query.projectionQueryBuilder()
70+
private static final Query<ProjectionEntity> QUERY3 = Query.projectionEntityQueryBuilder()
7171
.kind("k")
7272
.namespace("ns1")
7373
.projection(Projection.property("p"))

0 commit comments

Comments
 (0)