Class ImmutableDocument

  • All Implemented Interfaces:
    Document, Identifiable, Record
    Direct Known Subclasses:
    DetachedDocument, ImmutableEdge, ImmutableEmbeddedDocument, ImmutableLightEdge, ImmutableVertex

    public class ImmutableDocument
    extends BaseDocument
    Immutable document implementation. To modify the record, you need to get the mutable representation by calling modify(). This implementation keeps the information in a byte[] to reduce the amount of objects to be managed by the Garbage Collector. For recurrent access to the record property you could evaluate to return the mutable version of it that is backed by an internal map where the record properties are cached in RAM.
    Author:
    Luca Garulli