private void resetDocs ( ) { changeMap . clear ( ) ; resumeToken = null ; for ( DocumentSnapshot snapshot : documentSet ) { // Mark each document as deleted. If documents are not deleted, they will be send again by // the server. changeMap . put ( snapshot . getReference ( ) . getResourcePath ( ) , null ) ; } current = false ; }
Helper to clear the docs on RESET or filter mismatch .