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
构造器和说明 |
---|
KeyValue.KeyOnlyKeyValue() |
KeyValue.KeyOnlyKeyValue(byte[] b) |
KeyValue.KeyOnlyKeyValue(byte[] b,
int offset,
int length) |
限定符和类型 | 方法和说明 |
---|---|
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
在类中 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
在接口中 Cell
getRowArray
在类中 KeyValue
public int getRowOffset()
getRowOffset
在接口中 Cell
getRowOffset
在类中 KeyValue
public byte[] getFamilyArray()
Cell
getFamilyArray
在接口中 Cell
getFamilyArray
在类中 KeyValue
public byte getFamilyLength()
getFamilyLength
在接口中 Cell
getFamilyLength
在类中 KeyValue
public int getFamilyOffset()
getFamilyOffset
在接口中 Cell
getFamilyOffset
在类中 KeyValue
public byte[] getQualifierArray()
Cell
getQualifierArray
在接口中 Cell
getQualifierArray
在类中 KeyValue
public int getQualifierLength()
getQualifierLength
在接口中 Cell
getQualifierLength
在类中 KeyValue
public int getQualifierOffset()
getQualifierOffset
在接口中 Cell
getQualifierOffset
在类中 KeyValue
public int getKeyLength()
getKeyLength
在类中 KeyValue
public short getRowLength()
getRowLength
在接口中 Cell
getRowLength
在类中 KeyValue
public byte getTypeByte()
getTypeByte
在接口中 Cell
getTypeByte
在类中 KeyValue
public long getTimestamp()
getTimestamp
在接口中 Cell
getTimestamp
在类中 KeyValue
public int getTimestampOffset()
getTimestampOffset
在类中 KeyValue
public byte[] getTagsArray()
getTagsArray
在接口中 Cell
getTagsArray
在类中 KeyValue
public int getTagsOffset()
KeyValue
getTagsOffset
在接口中 Cell
getTagsOffset
在类中 KeyValue
public byte[] getValueArray()
Cell
getValueArray
在接口中 Cell
getValueArray
在类中 KeyValue
public int getValueOffset()
getValueOffset
在接口中 Cell
getValueOffset
在类中 KeyValue
public int getValueLength()
getValueLength
在接口中 Cell
getValueLength
在类中 KeyValue
public int getTagsLength()
KeyValue
getTagsLength
在接口中 Cell
getTagsLength
在类中 KeyValue
public int hashCode()
KeyValue
KeyValue.equals(Object)
, only uses the key portion, not the value.Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.