public class RowcolCodec extends Object
| Constructor and Description |
|---|
RowcolCodec() |
| Modifier and Type | Method and Description |
|---|---|
static DBDocument |
decode(ByteBuffer input) |
static DBDocument |
decode(ByteBuffer input,
ByteBuffer rowKey,
boolean excludeId,
boolean decodeTimestamp)
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) |
static void |
decodeInternal(Map<Integer,ByteBuffer> map,
Map<org.ojai.FieldPath,Integer> jsonPathMap,
Map<Integer,String> idToCFNameMap,
boolean insertionOrder,
boolean decodeTimestamp,
DBDocumentImpl outDoc) |
static Mutation |
decodeMutation(ByteBuffer input,
boolean needsRead) |
static ByteBuffer |
encode(org.ojai.Document document)
Encodes input Ojai document into a byte array encoded into 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, 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)
public static DBDocument decode(ByteBuffer input)
public static DBDocument decode(ByteBuffer input, ByteBuffer rowKey, boolean excludeId, boolean decodeTimestamp)
public static Mutation decodeMutation(ByteBuffer input, boolean needsRead)
Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.