| Package | Description |
|---|---|
| org.apache.hadoop.hbase |
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayBackedTag
This is a
Tag implementation in which value is backed by an on heap byte array. |
class |
ByteBufferTag
This is a
Tag implementation in which value is backed by
ByteBuffer |
| Modifier and Type | Method and Description |
|---|---|
static Tag |
CellUtil.getTag(Cell cell,
byte type)
Deprecated.
As of 2.0.0 and will be removed in HBase-3.0.0
|
static Tag |
PrivateCellUtil.getTag(Cell cell,
byte type)
Retrieve Cell's first tag, matching the passed in type
|
| Modifier and Type | Method and Description |
|---|---|
static List<Tag> |
TagUtil.asList(byte[] b,
int offset,
int length)
Creates list of tags from given byte array, expected that it is in the expected tag format.
|
static List<Tag> |
TagUtil.asList(ByteBuffer b,
int offset,
int length)
Creates list of tags from given ByteBuffer, expected that it is in the expected tag format.
|
static List<Tag> |
TagUtil.carryForwardTags(Cell cell) |
static List<Tag> |
TagUtil.carryForwardTags(List<Tag> tagsOrNull,
Cell cell)
Add to
tagsOrNull any Tags cell is carrying or null if none. |
static List<Tag> |
TagUtil.carryForwardTTLTag(List<Tag> tagsOrNull,
long ttl) |
List<Tag> |
KeyValue.getTags()
Returns any tags embedded in the KeyValue.
|
static List<Tag> |
CellUtil.getTags(Cell cell)
Deprecated.
As of 2.0.0 and will be removed in 3.0.0
|
static List<Tag> |
PrivateCellUtil.getTags(Cell cell) |
static Iterator<Tag> |
CellUtil.tagsIterator(byte[] tags,
int offset,
int length)
Deprecated.
As of 2.0.0 and will be removed in 3.0.0 Instead use
PrivateCellUtil.tagsIterator(Cell) |
static Iterator<Tag> |
PrivateCellUtil.tagsIterator(Cell cell)
Util method to iterate through the tags in the given cell.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
TagUtil.cloneValue(Tag tag)
Returns tag value in a new byte array.
|
static void |
TagUtil.copyValueTo(Tag tag,
byte[] out,
int offset)
Copies the tag's value bytes to the given byte array
|
static byte |
TagUtil.getValueAsByte(Tag tag)
Converts the value bytes of the given tag into a byte value
|
static long |
TagUtil.getValueAsLong(Tag tag)
Converts the value bytes of the given tag into a long value
|
static String |
TagUtil.getValueAsString(Tag tag)
Converts the value bytes of the given tag into a String value
|
static boolean |
TagUtil.matchingValue(Tag t1,
Tag t2)
Matches the value part of given tags
|
static Pair<Integer,Integer> |
TagUtil.readVIntValuePart(Tag tag,
int offset)
Reads an int value stored as a VInt at tag's given offset.
|
static int |
KeyValue.writeByteArray(byte[] buffer,
int boffset,
byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
KeyValue.Type type,
byte[] value,
int voffset,
int vlength,
Tag[] tags)
Write KeyValue format into the provided byte array.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Tag> |
TagUtil.carryForwardTags(List<Tag> tagsOrNull,
Cell cell)
Add to
tagsOrNull any Tags cell is carrying or null if none. |
static List<Tag> |
TagUtil.carryForwardTTLTag(List<Tag> tagsOrNull,
long ttl) |
static Cell |
CellUtil.createCell(Cell cell,
List<Tag> tags)
Deprecated.
As of HBase-2.0. Will be removed in HBase-3.0.
|
static Cell |
PrivateCellUtil.createCell(Cell cell,
List<Tag> tags) |
static byte[] |
TagUtil.fromList(List<Tag> tags)
Write a list of tags into a byte array
|
| Constructor and Description |
|---|
KeyValue(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte[] value,
Tag[] tags)
Constructs KeyValue structure filled with specified values.
|
KeyValue(byte[] buffer,
int boffset,
byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
KeyValue.Type type,
byte[] value,
int voffset,
int vlength,
Tag[] tags)
Constructs KeyValue structure filled with specified values.
|
| Constructor and Description |
|---|
KeyValue(byte[] row,
byte[] family,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
KeyValue.Type type,
byte[] value,
int voffset,
int vlength,
List<Tag> tags)
Constructs KeyValue structure filled with specified values.
|
KeyValue(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte[] value,
List<Tag> tags)
Constructs KeyValue structure filled with specified values.
|
KeyValue(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
KeyValue.Type type,
byte[] value,
List<Tag> tags)
Constructs KeyValue structure filled with specified values.
|
KeyValue(byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
KeyValue.Type type,
byte[] value,
int voffset,
int vlength,
List<Tag> tags)
Constructs KeyValue structure filled with specified values.
|
KeyValue(byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
ByteBuffer qualifier,
long ts,
KeyValue.Type type,
ByteBuffer value,
List<Tag> tags) |
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.