public class ProjectedDocumentRevision extends DocumentRevision
toFullRevision()
to obtain a "full" revision with all fields present. This is a pre-requisite
for saving a ProjectedDocumentRevision
.Modifier and Type | Method and Description |
---|---|
DocumentRevision |
toFullRevision()
Returns a "Full" document revision.
|
asBytes, asMap, compareTo, equals, getAttachments, getBody, getGeneration, getId, getRevision, getSequence, hashCode, initialiseSequence, isBodyModified, isCurrent, isDeleted, isFullRevision, setAttachments, setBody, setDeleted, setRevision, toString
public DocumentRevision toFullRevision() throws DocumentNotFoundException
DocumentRevision
IndexManager.find(Map, long, long, List, List)
using the
fields
option to limit the fields returned, a revision will be missing data so it
cannot be regarded as a full revision. If the document is a full revision, this method will
only attempt to load the full revision from the datastore if DocumentRevision.isFullRevision()
returns false.toFullRevision
in class DocumentRevision
DocumentNotFoundException
- Thrown if the full document cannot be loaded from the
datastore.