Class RDBDocumentSerializer
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentSerializer
-
public class RDBDocumentSerializer extends 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 String
asString(@NotNull Document doc, Set<String> columnProperties)
Serializes all non-column properties of theDocument
into a JSON string.String
asString(UpdateOp update, Set<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 String asString(@NotNull @NotNull Document doc, Set<String> columnProperties)
Serializes all non-column properties of theDocument
into a JSON string.
-
asString
public String asString(UpdateOp update, Set<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
-
-