Class RDBDocumentSerializer
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentSerializer
-
public class RDBDocumentSerializer extends java.lang.Object
Serialization/Parsing of documents.
-
-
Constructor Summary
Constructors Constructor Description RDBDocumentSerializer(DocumentStore store)
-
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 theDocument
into a JSON string.java.lang.String
asString(UpdateOp update, java.util.Set<java.lang.String> columnProperties)
Serializes the changes in theUpdateOp
into a JSON array; each entry is another JSON array holding operation, key, revision, and value.<T extends Document>
TfromRow(@NotNull Collection<T> collection, @NotNull RDBRow row)
-
-
-
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 theDocument
into a JSON string.
-
asString
public java.lang.String asString(UpdateOp update, java.util.Set<java.lang.String> columnProperties)
Serializes the changes in theUpdateOp
into a JSON array; each entry is another JSON array holding operation, key, revision, and value.
-
fromRow
@NotNull public <T extends Document> T fromRow(@NotNull @NotNull Collection<T> collection, @NotNull @NotNull RDBRow row) throws DocumentStoreException
- Throws:
DocumentStoreException
-
-