Class VectorQuerySnapshot (3.43.1) (original) (raw)

Class VectorQuerySnapshot (3.43.1)

public class VectorQuerySnapshot extends GenericQuerySnapshot<VectorQuery>

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

Inherited Members

Static Methods

withDocuments(VectorQuery query, Timestamp readTime, List 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 documents, List 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>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-06-18 UTC.