public class RowcolCodec
extends java.lang.Object
| Constructor and Description |
|---|
RowcolCodec() |
| Modifier and Type | Method and Description |
|---|---|
static org.ojai.Document |
decode(java.nio.ByteBuffer input) |
static org.ojai.Document |
decode(java.nio.ByteBuffer input,
java.nio.ByteBuffer rowKey,
boolean excludeId,
boolean decodeTimestamp,
boolean preserveDeleteFlags)
Decodes a serialized byte buffer and returns a document.
|
static DBDocumentImpl |
decode(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap,
java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap) |
static DBDocumentImpl |
decode(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap,
java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap,
java.nio.ByteBuffer rowKey,
boolean excludeId,
boolean cacheEncoded,
boolean insertionOrder,
boolean decodeTimestamp,
boolean preserveDeleteFlags,
java.lang.String[] paths) |
static void |
decodeInternal(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap,
java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap,
boolean insertionOrder,
boolean decodeTimestamp,
boolean preserveDeleteFlags,
DBDocumentImpl outDoc,
java.lang.String[] paths) |
static org.ojai.store.DocumentMutation |
decodeMutation(java.nio.ByteBuffer input,
boolean needsRead) |
static java.nio.ByteBuffer |
encode(org.ojai.Document document)
Encodes an input OJAI document into a byte array in rowcol format.
|
static SerializedFamilyInfo[] |
encode(org.ojai.Document document,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap) |
static SerializedFamilyInfo[] |
encode(org.ojai.Document document,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap,
boolean isBulkLoad,
boolean useCached) |
static DBDocumentImpl |
getDBDocument(org.ojai.Document r) |
public static DBDocumentImpl getDBDocument(org.ojai.Document r)
public static SerializedFamilyInfo[] encode(org.ojai.Document document, java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap, boolean isBulkLoad, boolean useCached)
public static SerializedFamilyInfo[] encode(org.ojai.Document document, java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap)
public static java.nio.ByteBuffer encode(org.ojai.Document document)
document - OJAI documentpublic static void decodeInternal(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap,
java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap,
boolean insertionOrder,
boolean decodeTimestamp,
boolean preserveDeleteFlags,
DBDocumentImpl outDoc,
java.lang.String[] paths)
public static DBDocumentImpl decode(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map, java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap, java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap)
public static DBDocumentImpl decode(java.util.Map<java.lang.Integer,java.nio.ByteBuffer> map, java.util.Map<org.ojai.FieldPath,java.lang.Integer> jsonPathMap, java.util.Map<java.lang.Integer,java.lang.String> idToCFNameMap, java.nio.ByteBuffer rowKey, boolean excludeId, boolean cacheEncoded, boolean insertionOrder, boolean decodeTimestamp, boolean preserveDeleteFlags, java.lang.String[] paths)
public static org.ojai.Document decode(java.nio.ByteBuffer input)
public static org.ojai.Document decode(java.nio.ByteBuffer input,
java.nio.ByteBuffer rowKey,
boolean excludeId,
boolean decodeTimestamp,
boolean preserveDeleteFlags)
public static org.ojai.store.DocumentMutation decodeMutation(java.nio.ByteBuffer input,
boolean needsRead)