public class RowcolCodec extends Object
| Constructor and Description |
|---|
RowcolCodec() |
| Modifier and Type | Method and Description |
|---|---|
static org.ojai.Document |
decode(ByteBuffer input) |
static org.ojai.Document |
decode(ByteBuffer input,
ByteBuffer rowKey,
boolean excludeId,
boolean decodeTimestamp,
boolean preserveDeleteFlags)
Decodes a serialized byte buffer and returns a document.
|
static DBDocumentImpl |
decode(Map<Integer,ByteBuffer> map,
Map<org.ojai.FieldPath,Integer> jsonPathMap,
Map<Integer,String> idToCFNameMap) |
static DBDocumentImpl |
decode(Map<Integer,ByteBuffer> map,
Map<org.ojai.FieldPath,Integer> jsonPathMap,
Map<Integer,String> idToCFNameMap,
ByteBuffer rowKey,
boolean excludeId,
boolean cacheEncoded,
boolean insertionOrder,
boolean decodeTimestamp,
boolean preserveDeleteFlags) |
static void |
decodeInternal(Map<Integer,ByteBuffer> map,
Map<org.ojai.FieldPath,Integer> jsonPathMap,
Map<Integer,String> idToCFNameMap,
boolean insertionOrder,
boolean decodeTimestamp,
boolean preserveDeleteFlags,
DBDocumentImpl outDoc) |
static org.ojai.store.DocumentMutation |
decodeMutation(ByteBuffer input,
boolean needsRead) |
static 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,
Map<org.ojai.FieldPath,Integer> jsonPathMap) |
static SerializedFamilyInfo[] |
encode(org.ojai.Document document,
Map<org.ojai.FieldPath,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, Map<org.ojai.FieldPath,Integer> jsonPathMap, boolean isBulkLoad, boolean useCached)
public static SerializedFamilyInfo[] encode(org.ojai.Document document, Map<org.ojai.FieldPath,Integer> jsonPathMap)
public static ByteBuffer encode(org.ojai.Document document)
document - OJAI documentpublic static void decodeInternal(Map<Integer,ByteBuffer> map, Map<org.ojai.FieldPath,Integer> jsonPathMap, Map<Integer,String> idToCFNameMap, boolean insertionOrder, boolean decodeTimestamp, boolean preserveDeleteFlags, DBDocumentImpl outDoc)
public static DBDocumentImpl decode(Map<Integer,ByteBuffer> map, Map<org.ojai.FieldPath,Integer> jsonPathMap, Map<Integer,String> idToCFNameMap)
public static DBDocumentImpl decode(Map<Integer,ByteBuffer> map, Map<org.ojai.FieldPath,Integer> jsonPathMap, Map<Integer,String> idToCFNameMap, ByteBuffer rowKey, boolean excludeId, boolean cacheEncoded, boolean insertionOrder, boolean decodeTimestamp, boolean preserveDeleteFlags)
public static org.ojai.Document decode(ByteBuffer input)
public static org.ojai.Document decode(ByteBuffer input, ByteBuffer rowKey, boolean excludeId, boolean decodeTimestamp, boolean preserveDeleteFlags)
public static org.ojai.store.DocumentMutation decodeMutation(ByteBuffer input, boolean needsRead)
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.