@@ -390,8 +390,8 @@ private void setUpQueryTests() {
390390 StringValue .newBuilder ("Learn Cloud Datastore" ).setExcludeFromIndexes (true ).build ())
391391 .set ("tag" , "fun" , "l" , "programming" , "learn" )
392392 .set (
393- "vector_property" ,
394- VectorValue .newBuilder (3.0 , 1.0 , 2.0 ).setExcludeFromIndexes (true ).build ())
393+ "vector_property" ,
394+ VectorValue .newBuilder (3.0 , 1.0 , 2.0 ).setExcludeFromIndexes (true ).build ())
395395 .build ());
396396 }
397397
@@ -715,8 +715,8 @@ public void testVectorSearch() {
715715 setUpQueryTests ();
716716 VectorValue vectorValue = VectorValue .newBuilder (1.78 , 2.56 , 3.88 ).build ();
717717 FindNearest vectorQuery =
718- new FindNearest (
719- "vector_property" , vectorValue , FindNearest .DistanceMeasure .COSINE , 1 , "distance" );
718+ new FindNearest (
719+ "vector_property" , vectorValue , FindNearest .DistanceMeasure .COSINE , 1 , "distance" );
720720
721721 Query <Entity > query = Query .newEntityQueryBuilder ().setFindNearest (vectorQuery ).build ();
722722 assertValidQuery (query );
@@ -727,7 +727,7 @@ public void testVectorSearchWithEmptyVector() {
727727 setUpQueryTests ();
728728 VectorValue emptyVector = VectorValue .newBuilder ().build ();
729729 FindNearest vectorQuery =
730- new FindNearest ("vector_property" , emptyVector , FindNearest .DistanceMeasure .EUCLIDEAN , 1 );
730+ new FindNearest ("vector_property" , emptyVector , FindNearest .DistanceMeasure .EUCLIDEAN , 1 );
731731 Query <Entity > query = Query .newEntityQueryBuilder ().setFindNearest (vectorQuery ).build ();
732732 assertInvalidQuery (query );
733733 }
@@ -737,7 +737,7 @@ public void testVectorSearchWithUnmatchedVectorSize() {
737737 setUpQueryTests ();
738738 VectorValue vectorValue = VectorValue .newBuilder (1.78 , 2.56 , 3.88 , 4.33 ).build ();
739739 FindNearest vectorQuery =
740- new FindNearest ("vector_property" , vectorValue , FindNearest .DistanceMeasure .DOT_PRODUCT , 1 );
740+ new FindNearest ("vector_property" , vectorValue , FindNearest .DistanceMeasure .DOT_PRODUCT , 1 );
741741 Query <Entity > query = Query .newEntityQueryBuilder ().setFindNearest (vectorQuery ).build ();
742742 assertInvalidQuery (query );
743743 }
0 commit comments