InsertOutcome

sealed interface InsertOutcome(source)

What JsonStore.insertAll did with one document.

Inheritors

Types

Link copied to clipboard

The source replaces documents that weren't visible, or its document key is taken, as exception tells; nothing of it is visible and nothing was deleted.

Link copied to clipboard
class Inserted(val docId: DocId) : InsertOutcome

The document is visible as docId; the documents its source replaces are deleted.

Link copied to clipboard

The document was rejected, for the reason exception gives; nothing of it is visible.