Class RDBDocumentSerializer


  • public class RDBDocumentSerializer
    extends java.lang.Object
    Serialization/Parsing of documents.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString​(@NotNull Document doc, java.util.Set<java.lang.String> columnProperties)
      Serializes all non-column properties of the Document into a JSON string.
      java.lang.String asString​(UpdateOp update, java.util.Set<java.lang.String> columnProperties)
      Serializes the changes in the UpdateOp into a JSON array; each entry is another JSON array holding operation, key, revision, and value.
      <T extends Document>
      T
      fromRow​(@NotNull Collection<T> collection, @NotNull RDBRow row)
      Reconstructs a Document based on the persisted RDBRow.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RDBDocumentSerializer

        public RDBDocumentSerializer​(DocumentStore store)
    • Method Detail

      • asString

        public java.lang.String asString​(@NotNull
                                         @NotNull Document doc,
                                         java.util.Set<java.lang.String> columnProperties)
        Serializes all non-column properties of the Document into a JSON string.
      • asString

        public java.lang.String asString​(UpdateOp update,
                                         java.util.Set<java.lang.String> columnProperties)
        Serializes the changes in the UpdateOp into a JSON array; each entry is another JSON array holding operation, key, revision, and value.