public class RDBDocumentSerializer extends Object
Constructor and Description |
---|
RDBDocumentSerializer(DocumentStore store) |
Modifier and Type | Method and Description |
---|---|
String |
asString(@NotNull Document doc,
Set<String> columnProperties)
Serializes all non-column properties of the
Document into a JSON
string. |
String |
asString(UpdateOp update,
Set<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> |
fromRow(@NotNull Collection<T> collection,
@NotNull RDBRow row)
|
public RDBDocumentSerializer(DocumentStore store)
public String asString(@NotNull @NotNull Document doc, Set<String> columnProperties)
Document
into a JSON
string.public String asString(UpdateOp update, Set<String> columnProperties)
UpdateOp
into a JSON array; each
entry is another JSON array holding operation, key, revision, and value.@NotNull public <T extends Document> T fromRow(@NotNull @NotNull Collection<T> collection, @NotNull @NotNull RDBRow row) throws DocumentStoreException
DocumentStoreException
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.