ADocumentChange represents a change to the documents matching a query.It contains the document affected and the type of change that occurred.
Type parameters
T
Index
Properties
doc
The document affected by this change.
newIndex
The index of the changed document in the result set immediately afterthisDocumentChange (i.e. supposing that all priorDocumentChangeobjects and the currentDocumentChange object have been applied).Is -1 for 'removed' events.
oldIndex
The index of the changed document in the result set immediately prior tothisDocumentChange (i.e. supposing that all priorDocumentChange objectshave been applied). Is -1 for 'added' events.
type
The type of change ('added', 'modified', or 'removed').
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.