Package com.google.cloud.firestore
Class VectorQuerySnapshot
java.lang.Object
com.google.cloud.firestore.GenericQuerySnapshot<VectorQuery>
com.google.cloud.firestore.VectorQuerySnapshot
- All Implemented Interfaces:
Iterable<QueryDocumentSnapshot>
A VectorQuerySnapshot contains the results of a VectorQuery. It can contain zero or more
DocumentSnapshot objects.
-
Field Summary
Fields inherited from class com.google.cloud.firestore.GenericQuerySnapshot
query, readTime -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVectorQuerySnapshot(VectorQuery query, com.google.cloud.Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges) -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorQuerySnapshotwithDocuments(VectorQuery query, com.google.cloud.Timestamp readTime, List<QueryDocumentSnapshot> documents) Creates a new VectorQuerySnapshot representing the results of a VectorQuery with added documents.Methods inherited from class com.google.cloud.firestore.GenericQuerySnapshot
equals, getDocumentChanges, getDocuments, getQuery, getReadTime, hashCode, isEmpty, iterator, size, toObjects, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
VectorQuerySnapshot
protected VectorQuerySnapshot(VectorQuery query, com.google.cloud.Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges)
-
-
Method Details
-
withDocuments
public static VectorQuerySnapshot withDocuments(VectorQuery query, com.google.cloud.Timestamp readTime, List<QueryDocumentSnapshot> documents) Creates a new VectorQuerySnapshot representing the results of a VectorQuery with added documents.
-