public static class KeyValue.KeyOnlyKeyValue extends KeyValue
KeyValue.KeyOnlyKeyValue, KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.RawBytesComparator, KeyValue.RowOnlyComparator, KeyValue.SamePrefixComparator<T>, KeyValue.Typebytes, COLUMN_FAMILY_DELIM_ARRAY, COLUMN_FAMILY_DELIMITER, COMPARATOR, FAMILY_LENGTH_SIZE, KEY_INFRASTRUCTURE_SIZE, KEY_LENGTH_SIZE, KEYVALUE_INFRASTRUCTURE_SIZE, KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE, length, LOWESTKEY, META_COMPARATOR, offset, RAW_COMPARATOR, ROW_LENGTH_SIZE, ROW_OFFSET, TAGS_LENGTH_SIZE, TIMESTAMP_SIZE, TIMESTAMP_TYPE_SIZE, TYPE_SIZE| Constructor and Description |
|---|
KeyValue.KeyOnlyKeyValue() |
KeyValue.KeyOnlyKeyValue(byte[] b) |
KeyValue.KeyOnlyKeyValue(byte[] b,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Needed doing 'contains' on List.
|
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array.
|
byte |
getFamilyLength() |
int |
getFamilyOffset() |
byte[] |
getKey()
Do not use unless you have to.
|
int |
getKeyLength() |
int |
getKeyOffset() |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getQualifierLength() |
int |
getQualifierOffset() |
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array.
|
short |
getRowLength() |
int |
getRowOffset() |
byte[] |
getTagsArray() |
int |
getTagsLength()
This returns the total length of the tag bytes
|
int |
getTagsOffset()
This returns the offset where the tag actually starts.
|
long |
getTimestamp() |
int |
getTimestampOffset() |
byte |
getTypeByte() |
byte[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getValueLength() |
int |
getValueOffset() |
int |
hashCode()
In line with
KeyValue.equals(Object), only uses the key portion, not the value. |
void |
setKey(byte[] key,
int offset,
int length)
A setter that helps to avoid object creation every time and whenever
there is a need to create new KeyOnlyKeyValue.
|
String |
toString() |
clone, cloneAndAddTags, create, create, createFirstOnRow, createFirstOnRow, createFirstOnRow, createKeyOnly, createKeyValueFromKey, createKeyValueFromKey, createKeyValueFromKey, getBuffer, getDelimiter, getDelimiterInReverse, getFamily, getFamilyLength, getKeyDataStructureSize, getKeyString, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getLength, getMvccVersion, getOffset, getQualifier, getRow, getSequenceId, getTags, getType, getValue, heapSize, heapSizeWithoutTags, humanReadableTimestamp, iscreate, isDelete, isDelete, isLatestTimestamp, keyToString, keyToString, makeColumn, oswrite, oswrite, parseColumn, setSequenceId, setTimestamp, setTimestamp, shallowCopy, toStringMap, updateLatestStamp, write, writeByteArraypublic KeyValue.KeyOnlyKeyValue()
public KeyValue.KeyOnlyKeyValue(byte[] b)
public KeyValue.KeyOnlyKeyValue(byte[] b,
int offset,
int length)
public int getKeyOffset()
getKeyOffset in class KeyValuepublic void setKey(byte[] key,
int offset,
int length)
key - offset - length - public byte[] getKey()
KeyValueKeyValue.getRow(), KeyValue.getFamily(), KeyValue.getQualifier(), and
KeyValue.getValue() if accessing a KeyValue client-side.public byte[] getRowArray()
CellgetRowArray in interface CellgetRowArray in class KeyValuepublic int getRowOffset()
getRowOffset in interface CellgetRowOffset in class KeyValuepublic byte[] getFamilyArray()
CellgetFamilyArray in interface CellgetFamilyArray in class KeyValuepublic byte getFamilyLength()
getFamilyLength in interface CellgetFamilyLength in class KeyValuepublic int getFamilyOffset()
getFamilyOffset in interface CellgetFamilyOffset in class KeyValuepublic byte[] getQualifierArray()
CellgetQualifierArray in interface CellgetQualifierArray in class KeyValuepublic int getQualifierLength()
getQualifierLength in interface CellgetQualifierLength in class KeyValuepublic int getQualifierOffset()
getQualifierOffset in interface CellgetQualifierOffset in class KeyValuepublic int getKeyLength()
getKeyLength in class KeyValuepublic short getRowLength()
getRowLength in interface CellgetRowLength in class KeyValuepublic byte getTypeByte()
getTypeByte in interface CellgetTypeByte in class KeyValuepublic long getTimestamp()
getTimestamp in interface CellgetTimestamp in class KeyValuepublic int getTimestampOffset()
getTimestampOffset in class KeyValuepublic byte[] getTagsArray()
getTagsArray in interface CellgetTagsArray in class KeyValuepublic int getTagsOffset()
KeyValuegetTagsOffset in interface CellgetTagsOffset in class KeyValuepublic byte[] getValueArray()
CellgetValueArray in interface CellgetValueArray in class KeyValuepublic int getValueOffset()
getValueOffset in interface CellgetValueOffset in class KeyValuepublic int getValueLength()
getValueLength in interface CellgetValueLength in class KeyValuepublic int getTagsLength()
KeyValuegetTagsLength in interface CellgetTagsLength in class KeyValuepublic int hashCode()
KeyValueKeyValue.equals(Object), only uses the key portion, not the value.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.