Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit aa41268

Browse files
committed
remove added snippets
1 parent 6bd35e1 commit aa41268

1 file changed

Lines changed: 0 additions & 143 deletions

File tree

samples/preview-snippets/src/main/java/com/example/firestore/PipelineSnippets.java

Lines changed: 0 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -924,149 +924,6 @@ void arrayLengthFunction() throws ExecutionException, InterruptedException {
924924
System.out.println(result.getResults());
925925
}
926926

927-
void arrayFirstFunction() throws ExecutionException, InterruptedException {
928-
// [START array_first]
929-
Pipeline.Snapshot result =
930-
firestore
931-
.pipeline()
932-
.collection("books")
933-
.select(arrayFirst(field("genre")).as("firstGenre"))
934-
.execute()
935-
.get();
936-
// [END array_first]
937-
System.out.println(result.getResults());
938-
}
939-
940-
void arrayFirstNFunction() throws ExecutionException, InterruptedException {
941-
// [START array_first_n]
942-
Pipeline.Snapshot result =
943-
firestore
944-
.pipeline()
945-
.collection("books")
946-
.select(arrayFirstN(field("genre"), 2).as("firstTwoGenres"))
947-
.execute()
948-
.get();
949-
// [END array_first_n]
950-
System.out.println(result.getResults());
951-
}
952-
953-
void arrayLastFunction() throws ExecutionException, InterruptedException {
954-
// [START array_last]
955-
Pipeline.Snapshot result =
956-
firestore
957-
.pipeline()
958-
.collection("books")
959-
.select(arrayLast(field("genre")).as("lastGenre"))
960-
.execute()
961-
.get();
962-
// [END array_last]
963-
System.out.println(result.getResults());
964-
}
965-
966-
void arrayLastNFunction() throws ExecutionException, InterruptedException {
967-
// [START array_last_n]
968-
Pipeline.Snapshot result =
969-
firestore
970-
.pipeline()
971-
.collection("books")
972-
.select(arrayLastN(field("genre"), 2).as("lastTwoGenres"))
973-
.execute()
974-
.get();
975-
// [END array_last_n]
976-
System.out.println(result.getResults());
977-
}
978-
979-
void arrayMinimumFunction() throws ExecutionException, InterruptedException {
980-
// [START array_minimum]
981-
Pipeline.Snapshot result =
982-
firestore
983-
.pipeline()
984-
.collection("books")
985-
.select(arrayMinimum(field("genre")).as("minimumGenre"))
986-
.execute()
987-
.get();
988-
// [END array_minimum]
989-
System.out.println(result.getResults());
990-
}
991-
992-
void arrayMinimumNFunction() throws ExecutionException, InterruptedException {
993-
// [START array_minimum_n]
994-
Pipeline.Snapshot result =
995-
firestore
996-
.pipeline()
997-
.collection("books")
998-
.select(arrayMinimumN(field("genre"), 2).as("minimumTwoGenres"))
999-
.execute()
1000-
.get();
1001-
// [END array_minimum_n]
1002-
System.out.println(result.getResults());
1003-
}
1004-
1005-
void arrayMaximumFunction() throws ExecutionException, InterruptedException {
1006-
// [START array_maximum]
1007-
Pipeline.Snapshot result =
1008-
firestore
1009-
.pipeline()
1010-
.collection("books")
1011-
.select(arrayMaximum(field("genre")).as("maximumGenre"))
1012-
.execute()
1013-
.get();
1014-
// [END array_maximum]
1015-
System.out.println(result.getResults());
1016-
}
1017-
1018-
void arrayMaximumNFunction() throws ExecutionException, InterruptedException {
1019-
// [START array_maximum_n]
1020-
Pipeline.Snapshot result =
1021-
firestore
1022-
.pipeline()
1023-
.collection("books")
1024-
.select(arrayMaximumN(field("genre"), 2).as("maximumTwoGenres"))
1025-
.execute()
1026-
.get();
1027-
// [END array_maximum_n]
1028-
System.out.println(result.getResults());
1029-
}
1030-
1031-
void arrayIndexOfFunction() throws ExecutionException, InterruptedException {
1032-
// [START array_index_of]
1033-
Pipeline.Snapshot result =
1034-
firestore
1035-
.pipeline()
1036-
.collection("books")
1037-
.select(arrayIndexOf(field("genre"), "fantasy").as("genreIndex"))
1038-
.execute()
1039-
.get();
1040-
// [END array_index_of]
1041-
System.out.println(result.getResults());
1042-
}
1043-
1044-
void arrayLastIndexOfFunction() throws ExecutionException, InterruptedException {
1045-
// [START array_last_index_of]
1046-
Pipeline.Snapshot result =
1047-
firestore
1048-
.pipeline()
1049-
.collection("books")
1050-
.select(arrayLastIndexOf(field("genre"), "fantasy").as("genreIndex"))
1051-
.execute()
1052-
.get();
1053-
// [END array_last_index_of]
1054-
System.out.println(result.getResults());
1055-
}
1056-
1057-
void arrayIndexOfAllFunction() throws ExecutionException, InterruptedException {
1058-
// [START array_index_of_all]
1059-
Pipeline.Snapshot result =
1060-
firestore
1061-
.pipeline()
1062-
.collection("books")
1063-
.select(arrayIndexOfAll(field("genre"), "fantasy").as("genreIndex"))
1064-
.execute()
1065-
.get();
1066-
// [END array_index_of_all]
1067-
System.out.println(result.getResults());
1068-
}
1069-
1070927
void arrayReverseFunction() throws ExecutionException, InterruptedException {
1071928
// [START array_reverse]
1072929
Pipeline.Snapshot result =

0 commit comments

Comments
 (0)