public class MutationHelper extends Object
| Constructor and Description |
|---|
MutationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
mutationCommon(InsertContext.OpType opType,
DBDocumentImpl rec,
org.ojai.FieldPath field,
KeyValue value)
This is the common entry point to insert different types of
mutation operations in a record.
|
public static boolean mutationCommon(InsertContext.OpType opType, DBDocumentImpl rec, org.ojai.FieldPath field, KeyValue value)
opType - The type of operation, such as set, set_or_replace, delete, and inc
to be applied to the given fieldrec - the record that is holding the mutation operation. Eventually this
record will be serialized to encode the mutation in rowcol formatfield - the path of the field on which the mutation is appliedvalue - the value for the mutation. For delete, it's the NULL type of the key valueCopyright © 2016 Mapr Technologies, Inc.. All rights reserved.