public static class KeyValue.KeyOnlyKeyValue extends KeyValue
KeyValue.KeyOnlyKeyValue, KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.RawBytesComparator, KeyValue.RowOnlyComparator, KeyValue.SamePrefixComparator<T>, KeyValue.Type
bytes, 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, writeByteArray
public KeyValue.KeyOnlyKeyValue()
public KeyValue.KeyOnlyKeyValue(byte[] b)
public KeyValue.KeyOnlyKeyValue(byte[] b, int offset, int length)
public int getKeyOffset()
getKeyOffset
in class KeyValue
public void setKey(byte[] key, int offset, int length)
key
- offset
- length
- public byte[] getKey()
KeyValue
KeyValue.getRow()
, KeyValue.getFamily()
, KeyValue.getQualifier()
, and
KeyValue.getValue()
if accessing a KeyValue client-side.public byte[] getRowArray()
Cell
getRowArray
in interface Cell
getRowArray
in class KeyValue
public int getRowOffset()
getRowOffset
in interface Cell
getRowOffset
in class KeyValue
public byte[] getFamilyArray()
Cell
getFamilyArray
in interface Cell
getFamilyArray
in class KeyValue
public byte getFamilyLength()
getFamilyLength
in interface Cell
getFamilyLength
in class KeyValue
public int getFamilyOffset()
getFamilyOffset
in interface Cell
getFamilyOffset
in class KeyValue
public byte[] getQualifierArray()
Cell
getQualifierArray
in interface Cell
getQualifierArray
in class KeyValue
public int getQualifierLength()
getQualifierLength
in interface Cell
getQualifierLength
in class KeyValue
public int getQualifierOffset()
getQualifierOffset
in interface Cell
getQualifierOffset
in class KeyValue
public int getKeyLength()
getKeyLength
in class KeyValue
public short getRowLength()
getRowLength
in interface Cell
getRowLength
in class KeyValue
public byte getTypeByte()
getTypeByte
in interface Cell
getTypeByte
in class KeyValue
public long getTimestamp()
getTimestamp
in interface Cell
getTimestamp
in class KeyValue
public int getTimestampOffset()
getTimestampOffset
in class KeyValue
public byte[] getTagsArray()
getTagsArray
in interface Cell
getTagsArray
in class KeyValue
public int getTagsOffset()
KeyValue
getTagsOffset
in interface Cell
getTagsOffset
in class KeyValue
public byte[] getValueArray()
Cell
getValueArray
in interface Cell
getValueArray
in class KeyValue
public int getValueOffset()
getValueOffset
in interface Cell
getValueOffset
in class KeyValue
public int getValueLength()
getValueLength
in interface Cell
getValueLength
in class KeyValue
public int getTagsLength()
KeyValue
getTagsLength
in interface Cell
getTagsLength
in class KeyValue
public int hashCode()
KeyValue
KeyValue.equals(Object)
, only uses the key portion, not the value.Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.