public static class KeyValue.KeyOnlyKeyValue extends KeyValue
KeyValue.KeyOnlyKeyValue, KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.SamePrefixComparator<T>, KeyValue.Type
bytes, COLUMN_FAMILY_DELIM_ARRAY, COLUMN_FAMILY_DELIMITER, COMPARATOR, FAMILY_LENGTH_SIZE, FIXED_OVERHEAD, KEY_INFRASTRUCTURE_SIZE, KEY_LENGTH_SIZE, KEYVALUE_INFRASTRUCTURE_SIZE, KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE, length, LOWESTKEY, META_COMPARATOR, offset, ROW_KEY_OFFSET, ROW_LENGTH_SIZE, ROW_OFFSET, TAGS_LENGTH_SIZE, TIMESTAMP_SIZE, TIMESTAMP_TYPE_SIZE, TYPE_SIZE
CELL_NOT_BASED_ON_CHUNK
MAX_TAGS_LENGTH
构造器和说明 |
---|
KeyOnlyKeyValue() |
KeyOnlyKeyValue(byte[] b) |
KeyOnlyKeyValue(byte[] b,
int offset,
int length) |
限定符和类型 | 方法和说明 |
---|---|
void |
clear() |
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()
Contiguous raw bytes representing tags that may start at any index in the containing array.
|
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. |
long |
heapSize()
HeapSize implementation
We do not count the bytes in the rowCache because it should be empty for a KeyValue in the
MemStore.
|
void |
set(KeyValue.KeyOnlyKeyValue keyOnlyKeyValue) |
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() |
int |
write(OutputStream out,
boolean withTags)
Write this cell to an OutputStream in a
KeyValue format. |
clone, create, create, createKeyOnly, deepClone, getBuffer, getDelimiter, getDelimiterInReverse, getFamilyLength, getKeyDataStructureSize, getKeyString, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getLength, getOffset, getSequenceId, getSerializedSize, humanReadableTimestamp, isLatestTimestamp, keyToString, keyToString, oswrite, setSequenceId, setTimestamp, setTimestamp, shallowCopy, toStringMap, updateLatestStamp, write, write, writeByteArray
getChunkId, getSerializedSize
checkForTagsLength, cloneTags, getTag, getTags
public KeyOnlyKeyValue()
public KeyOnlyKeyValue(byte[] b)
public KeyOnlyKeyValue(byte[] b, int offset, int length)
public void set(KeyValue.KeyOnlyKeyValue keyOnlyKeyValue)
public void clear()
public int getKeyOffset()
getKeyOffset
在类中 KeyValue
public void setKey(byte[] key, int offset, int length)
key
- offset
- length
- public byte[] getKey()
KeyValue
KeyValue.getRowArray()
, KeyValue.getFamilyArray()
, KeyValue.getQualifierArray()
, and
KeyValue.getValueArray()
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
在接口中 ExtendedCell
getTypeByte
在类中 KeyValue
public long getTimestamp()
getTimestamp
在接口中 Cell
getTimestamp
在类中 KeyValue
public int getTimestampOffset()
getTimestampOffset
在类中 KeyValue
public byte[] getTagsArray()
ExtendedCell
getTagsArray
在接口中 Cell
getTagsArray
在接口中 ExtendedCell
getTagsArray
在类中 KeyValue
public int getTagsOffset()
KeyValue
getTagsOffset
在接口中 Cell
getTagsOffset
在接口中 ExtendedCell
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
在接口中 ExtendedCell
getTagsLength
在类中 KeyValue
public int hashCode()
KeyValue
KeyValue.equals(Object)
, only uses the key portion, not the value.public boolean equals(Object other)
KeyValue
public long heapSize()
KeyValue
public int write(OutputStream out, boolean withTags) throws IOException
ExtendedCell
KeyValue
format.
<4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags>
write
在接口中 ExtendedCell
write
在类中 KeyValue
out
- Stream to which cell has to be writtenwithTags
- Whether to write tags.IOException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.