public class KeyValue extends Object implements org.ojai.Value
| Modifier and Type | Field and Description |
|---|---|
static byte |
ArrayIndexTypeMask |
static byte |
ArrayIndexTypeShift |
static byte |
IsArrayElementMask |
static byte |
IsArrayElementShift |
static byte |
IsRootMask |
static byte |
IsRootShift |
protected InsertContext.OpType |
opType |
| Constructor and Description |
|---|
KeyValue() |
KeyValue(org.ojai.Value.Type type) |
| Modifier and Type | Method and Description |
|---|---|
org.ojai.DocumentReader |
asReader() |
static boolean |
equals(KeyValue kv1,
KeyValue kv2,
boolean matchTime,
boolean keepOnlyMismatch,
TimeAndUniq parentDelTime1,
TimeAndUniq parentDelTime2) |
boolean |
equals(Object obj) |
com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType |
getArrayIndexType() |
ByteBuffer |
getBinary() |
boolean |
getBoolean() |
byte |
getByte() |
int |
getCFRootId() |
org.ojai.types.ODate |
getDate() |
int |
getDateAsInt() |
BigDecimal |
getDecimal() |
double |
getDouble() |
float |
getFloat() |
int |
getInt() |
org.ojai.types.OInterval |
getInterval() |
long |
getIntervalAsLong() |
String |
getKey() |
List<Object> |
getList() |
long |
getLong() |
Map<String,Object> |
getMap() |
Object |
getObject() |
InsertContext.OpType |
getOpType() |
int |
getOrderOfField() |
org.ojai.Document |
getRecord() |
short |
getShort() |
String |
getString() |
org.ojai.types.OTime |
getTime() |
int |
getTimeAsInt() |
byte |
getTimeDescriptor() |
org.ojai.types.OTimestamp |
getTimestamp() |
long |
getTimestampAsLong() |
org.ojai.Value.Type |
getType() |
boolean |
isArrayElement() |
boolean |
isContainerType() |
boolean |
isPartOfNonDefaultColumnFamily() |
boolean |
isRoot() |
boolean |
isRootOfColumnFamily() |
void |
restoreKVOrder(Map<Integer,String> idToCFNameMap) |
void |
setArrayIndex(com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType type,
int index) |
void |
setArrayIndexType(com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType type) |
void |
setCFRootId(int id) |
void |
setIsArrayElement(boolean v) |
void |
setIsRoot() |
void |
setKey(String key) |
void |
setOpTypeAndFlags(InsertContext ctx,
boolean isLastElement) |
void |
setOrderOfField(int i) |
void |
setPartOfNonDefaultColumnFamily(boolean b) |
void |
setRecursiveNonDefaultColumnFamily(boolean b,
int cfId) |
void |
setRootFlags(InsertContext ctx) |
void |
setRootOfColumnFamily(boolean b) |
KeyValue |
shallowCopy() |
String |
toString() |
void |
toString(StringBuilder buf) |
String |
toStringWithTimestamp() |
static void |
updateChecksumKeyValue(Checksum checksum,
KeyValue kv,
boolean includeTime,
TimeAndUniq parentDelTime) |
static void |
updateChecksumPrimaryType(Checksum checksum,
KeyValue kv) |
void |
valueToString(StringBuilder buf) |
protected InsertContext.OpType opType
public static final byte IsArrayElementMask
public static final byte IsArrayElementShift
public static final byte ArrayIndexTypeMask
public static final byte ArrayIndexTypeShift
public static final byte IsRootMask
public static final byte IsRootShift
public void setIsArrayElement(boolean v)
public boolean isArrayElement()
public void setArrayIndexType(com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType type)
public com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType getArrayIndexType()
public void setIsRoot()
public boolean isRoot()
public org.ojai.Value.Type getType()
getType in interface org.ojai.Valuepublic String getKey()
public byte getByte()
getByte in interface org.ojai.Valuepublic short getShort()
getShort in interface org.ojai.Valuepublic int getInt()
getInt in interface org.ojai.Valuepublic long getLong()
getLong in interface org.ojai.Valuepublic float getFloat()
getFloat in interface org.ojai.Valuepublic double getDouble()
getDouble in interface org.ojai.Valuepublic boolean getBoolean()
getBoolean in interface org.ojai.Valuepublic org.ojai.types.OTimestamp getTimestamp()
getTimestamp in interface org.ojai.Valuepublic long getTimestampAsLong()
getTimestampAsLong in interface org.ojai.Valuepublic String getString()
getString in interface org.ojai.Valuepublic BigDecimal getDecimal()
getDecimal in interface org.ojai.Valuepublic org.ojai.types.ODate getDate()
getDate in interface org.ojai.Valuepublic int getDateAsInt()
getDateAsInt in interface org.ojai.Valuepublic org.ojai.types.OTime getTime()
getTime in interface org.ojai.Valuepublic int getTimeAsInt()
getTimeAsInt in interface org.ojai.Valuepublic org.ojai.types.OInterval getInterval()
getInterval in interface org.ojai.Valuepublic long getIntervalAsLong()
getIntervalAsLong in interface org.ojai.Valuepublic org.ojai.Document getRecord()
public ByteBuffer getBinary()
getBinary in interface org.ojai.Valuepublic Object getObject()
getObject in interface org.ojai.Valuepublic org.ojai.DocumentReader asReader()
asReader in interface org.ojai.Valuepublic KeyValue shallowCopy()
public void setKey(String key)
public void setArrayIndex(com.mapr.db.rowcol.ArrayIndexDescriptor.ArrayIndexType type,
int index)
public void toString(StringBuilder buf)
public void valueToString(StringBuilder buf)
public void setRootFlags(InsertContext ctx)
public void setOpTypeAndFlags(InsertContext ctx, boolean isLastElement)
public InsertContext.OpType getOpType()
public byte getTimeDescriptor()
public void setOrderOfField(int i)
public int getOrderOfField()
public boolean isContainerType()
public void setRootOfColumnFamily(boolean b)
public boolean isRootOfColumnFamily()
public void setPartOfNonDefaultColumnFamily(boolean b)
public boolean isPartOfNonDefaultColumnFamily()
public void setCFRootId(int id)
public int getCFRootId()
public void setRecursiveNonDefaultColumnFamily(boolean b,
int cfId)
public String toStringWithTimestamp()
public static boolean equals(KeyValue kv1, KeyValue kv2, boolean matchTime, boolean keepOnlyMismatch, TimeAndUniq parentDelTime1, TimeAndUniq parentDelTime2)
@API.Internal public static void updateChecksumKeyValue(Checksum checksum, KeyValue kv, boolean includeTime, TimeAndUniq parentDelTime)
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.