| 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
Use
RawCell.getTag(byte) |
| 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.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) |
default Optional<Tag> |
RawCell.getTag(byte type)
Returns the specific tag of the given type
|
Optional<Tag> |
ByteBufferKeyOnlyKeyValue.getTag(byte type) |
static Optional<Tag> |
PrivateCellUtil.getTag(Cell cell,
byte type)
Retrieve Cell's first tag, matching the passed in type
|
default Iterator<Tag> |
RawCell.getTags()
Creates a list of tags in the current cell
|
Iterator<Tag> |
ByteBufferKeyOnlyKeyValue.getTags() |
static List<Tag> |
PrivateCellUtil.getTags(Cell cell) |
static List<Tag> |
CellUtil.getTags(Cell cell)
Deprecated.
As of 2.0.0 and will be removed in 3.0.0
|
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(ByteBuffer tags,
int offset,
int length) |
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[] |
Tag.cloneValue(Tag tag)
Returns tag value in a new byte array.
|
static void |
Tag.copyValueTo(Tag tag,
byte[] out,
int offset)
Copies the tag's value bytes to the given byte array
|
static byte |
Tag.getValueAsByte(Tag tag)
Converts the value bytes of the given tag into a byte value
|
static long |
Tag.getValueAsLong(Tag tag)
Converts the value bytes of the given tag into a long value
|
static String |
Tag.getValueAsString(Tag tag)
Converts the value bytes of the given tag into a String value
|
static boolean |
Tag.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 |
PrivateCellUtil.createCell(Cell cell,
List<Tag> tags) |
static Cell |
CellUtil.createCell(Cell cell,
List<Tag> tags)
Deprecated.
As of release 2.0.0, this will be removed in HBase 3.0.0.
|
static byte[] |
TagUtil.fromList(List<Tag> tags)
Write a list of tags into a byte array
Note : these are all purely internal APIs.
|
ExtendedCellBuilder |
ExtendedCellBuilder.setTags(List<Tag> tags) |
ExtendedCellBuilder |
ExtendedCellBuilderImpl.setTags(List<Tag> tags) |
RawCellBuilder |
RawCellBuilder.setTags(List<Tag> tags) |
| 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–2020 The Apache Software Foundation. All rights reserved.