Class VectorQuerySnapshot (3.27.2)

public class VectorQuerySnapshot extends GenericQuerySnapshot<VectorQuery>

A VectorQuerySnapshot contains the results of a VectorQuery. It can contain zero or more DocumentSnapshot objects.

Inheritance

java.lang.Object > GenericQuerySnapshot > VectorQuerySnapshot

Static Methods

withDocuments(VectorQuery query, Timestamp readTime, List<QueryDocumentSnapshot> documents)

public static VectorQuerySnapshot withDocuments(VectorQuery query, Timestamp readTime, List<QueryDocumentSnapshot> documents)

Creates a new VectorQuerySnapshot representing the results of a VectorQuery with added documents.

Parameters
Name Description
query VectorQuery
readTime com.google.cloud.Timestamp
documents List<QueryDocumentSnapshot>
Returns
Type Description
VectorQuerySnapshot

Constructors

VectorQuerySnapshot(VectorQuery query, Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges)

protected VectorQuerySnapshot(VectorQuery query, Timestamp readTime, List<QueryDocumentSnapshot> documents, List<DocumentChange> documentChanges)
Parameters
Name Description
query VectorQuery
readTime com.google.cloud.Timestamp
documents List<QueryDocumentSnapshot>
documentChanges List<DocumentChange>