Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.filter |
Provides row-level filters applied to HRegion scan results during calls to
ResultScanner.next() . |
org.apache.hadoop.hbase.mapreduce |
Provides HBase MapReduce
Input/OutputFormats, a table indexing MapReduce job, and utility methods.
|
org.apache.hadoop.hbase.util |
Modifier and Type | Field and Description |
---|---|
static Cell |
HConstants.NO_NEXT_INDEXED_KEY
The byte array represents for NO_NEXT_INDEXED_KEY;
The actual value is irrelevant because this is always compared by reference.
|
Modifier and Type | Method and Description |
---|---|
static Cell |
CellUtil.createCell(byte[] row)
Create a Cell with specific row.
|
static Cell |
CellUtil.createCell(byte[] row,
byte[] value)
Create a Cell with specific row and value.
|
static Cell |
CellUtil.createCell(byte[] row,
byte[] family,
byte[] qualifier)
Create a Cell with specific row.
|
static Cell |
CellUtil.createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte type,
byte[] value) |
static Cell |
CellUtil.createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte type,
byte[] value,
byte[] tags,
long memstoreTS) |
static Cell |
CellUtil.createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
byte type,
byte[] value,
long memstoreTS) |
static Cell |
CellUtil.createCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
org.apache.hadoop.hbase.KeyValue.Type type,
byte[] value,
byte[] tags) |
static Cell |
CellUtil.createCell(byte[] rowArray,
int rowOffset,
int rowLength,
byte[] familyArray,
int familyOffset,
int familyLength,
byte[] qualifierArray,
int qualifierOffset,
int qualifierLength) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
CellUtil.cloneFamily(Cell cell) |
static byte[] |
CellUtil.cloneQualifier(Cell cell) |
static byte[] |
CellUtil.cloneRow(Cell cell)
get individual arrays for tests
|
static byte[] |
CellUtil.cloneValue(Cell cell) |
static int |
CellUtil.copyFamilyTo(Cell cell,
byte[] destination,
int destinationOffset) |
static int |
CellUtil.copyQualifierTo(Cell cell,
byte[] destination,
int destinationOffset) |
static int |
CellUtil.copyRowTo(Cell cell,
byte[] destination,
int destinationOffset)
copyTo
|
static int |
CellUtil.copyTagTo(Cell cell,
byte[] destination,
int destinationOffset)
Copies the tags info into the tag portion of the cell
|
static int |
CellUtil.copyValueTo(Cell cell,
byte[] destination,
int destinationOffset) |
static org.apache.hadoop.hbase.CellScanner |
CellUtil.createCellScanner(Cell[] cellArray) |
static boolean |
CellUtil.equals(Cell a,
Cell b)
equals
|
static long |
CellUtil.estimatedHeapSizeOf(Cell cell)
This is an estimate of the heap space occupied by a cell.
|
static long |
CellUtil.estimatedHeapSizeOfWithoutTags(Cell cell)
Deprecated.
|
static int |
CellUtil.estimatedSerializedSizeOf(Cell cell) |
static int |
CellUtil.estimatedSerializedSizeOfKey(Cell cell) |
static int |
CellUtil.estimatedSizeOf(Cell cell)
Deprecated.
please use estimatedSerializedSizeOf(Cell)
|
static ByteRange |
CellUtil.fillFamilyRange(Cell cell,
ByteRange range) |
static ByteRange |
CellUtil.fillQualifierRange(Cell cell,
ByteRange range) |
static ByteRange |
CellUtil.fillRowRange(Cell cell,
ByteRange range)
ByteRange
|
static ByteRange |
CellUtil.fillTagRange(Cell cell,
ByteRange range) |
static ByteRange |
CellUtil.fillValueRange(Cell cell,
ByteRange range) |
static int |
CellUtil.findCommonPrefixInFlatKey(Cell c1,
Cell c2,
boolean bypassFamilyCheck,
boolean withTsType)
Find length of common prefix in keys of the cells, considering key as byte[] if serialized in
KeyValue . |
static String |
CellUtil.getCellKeyAsString(Cell cell) |
static byte[] |
CellUtil.getCellKeySerializedAsKeyValueKey(Cell cell)
This method exists just to encapsulate how we serialize keys.
|
static ByteBuffer |
CellUtil.getQualifierBufferShallowCopy(Cell cell) |
static byte |
CellUtil.getRowByte(Cell cell,
int index)
misc
|
static byte[] |
CellUtil.getTagArray(Cell cell)
Returns tag value in a new byte array.
|
static ByteBuffer |
CellUtil.getValueBufferShallowCopy(Cell cell) |
static boolean |
CellUtil.isDelete(Cell cell) |
static boolean |
CellUtil.isDeleteColumnOrFamily(Cell cell) |
static boolean |
CellUtil.isDeleteColumns(Cell cell) |
static boolean |
CellUtil.isDeleteColumnVersion(Cell cell) |
static boolean |
CellUtil.isDeleteFamily(Cell cell) |
static boolean |
CellUtil.isDeleteFamilyVersion(Cell cell) |
static boolean |
CellUtil.isDeleteType(Cell cell) |
static boolean |
CellUtil.matchingColumn(Cell left,
byte[] fam,
byte[] qual) |
static boolean |
CellUtil.matchingColumn(Cell left,
byte[] fam,
int foffset,
int flength,
byte[] qual,
int qoffset,
int qlength) |
static boolean |
CellUtil.matchingColumn(Cell left,
Cell right) |
static boolean |
CellUtil.matchingFamily(Cell left,
byte[] buf) |
static boolean |
CellUtil.matchingFamily(Cell left,
byte[] buf,
int offset,
int length) |
static boolean |
CellUtil.matchingFamily(Cell left,
Cell right) |
static boolean |
CellUtil.matchingQualifier(Cell left,
byte[] buf) |
static boolean |
CellUtil.matchingQualifier(Cell left,
byte[] buf,
int offset,
int length) |
static boolean |
CellUtil.matchingQualifier(Cell left,
Cell right) |
static boolean |
CellUtil.matchingRow(Cell left,
byte[] buf) |
static boolean |
CellUtil.matchingRow(Cell left,
byte[] buf,
int offset,
int length) |
static boolean |
CellUtil.matchingRow(Cell left,
Cell right) |
static boolean |
CellUtil.matchingTimestamp(Cell a,
Cell b) |
static boolean |
CellUtil.matchingType(Cell a,
Cell b) |
static boolean |
CellUtil.matchingValue(Cell left,
byte[] buf) |
static boolean |
CellUtil.matchingValue(Cell left,
Cell right) |
static void |
CellUtil.setSequenceId(Cell cell,
long seqId)
Sets the given seqId to the cell.
|
static void |
CellUtil.setTimestamp(Cell cell,
byte[] ts,
int tsOffset)
Sets the given timestamp to the cell.
|
static void |
CellUtil.setTimestamp(Cell cell,
long ts)
Sets the given timestamp to the cell.
|
static String |
CellUtil.toString(Cell cell,
boolean verbose)
Returns a string representation of the cell
|
static boolean |
CellUtil.updateLatestStamp(Cell cell,
byte[] ts,
int tsOffset)
Sets the given timestamp to the cell iff current timestamp is
HConstants.LATEST_TIMESTAMP . |
static boolean |
CellUtil.updateLatestStamp(Cell cell,
long ts)
Sets the given timestamp to the cell iff current timestamp is
HConstants.LATEST_TIMESTAMP . |
static void |
CellUtil.writeFlatKey(Cell cell,
DataOutputStream out)
Writes the Cell's key part as it would have serialized in a KeyValue.
|
static void |
CellUtil.writeRowKeyExcludingCommon(Cell cell,
short rLen,
int commonPrefix,
DataOutputStream out)
Write rowkey excluding the common part.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.CellScanner |
CellUtil.createCellScanner(Iterable<Cell> cellIterable) |
static org.apache.hadoop.hbase.CellScanner |
CellUtil.createCellScanner(Iterator<Cell> cells) |
static org.apache.hadoop.hbase.CellScanner |
CellUtil.createCellScanner(NavigableMap<byte[],List<Cell>> map)
Flatten the map of cells out under the CellScanner
|
Modifier and Type | Field and Description |
---|---|
protected NavigableMap<byte[],List<Cell>> |
Mutation.familyMap |
Modifier and Type | Method and Description |
---|---|
Cell |
Result.current() |
Cell |
Result.getColumnLatestCell(byte[] family,
byte[] qualifier)
The Cell for the most recent timestamp for a given column.
|
Cell |
Result.getColumnLatestCell(byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength)
The Cell for the most recent timestamp for a given column.
|
Cell[] |
Result.rawCells()
Return the array of Cells backing this Result instance.
|
Modifier and Type | Method and Description |
---|---|
List<Cell> |
Put.get(byte[] family,
byte[] qualifier)
Returns a list of all KeyValue objects with matching column family and qualifier.
|
List<Cell> |
Result.getColumnCells(byte[] family,
byte[] qualifier)
Return the Cells for the specific column.
|
NavigableMap<byte[],List<Cell>> |
Mutation.getFamilyCellMap()
Method for retrieving the put's familyMap
|
List<Cell> |
Result.listCells()
Create a sorted list of the Cell's in this result.
|
Modifier and Type | Method and Description |
---|---|
Put |
Put.add(Cell kv)
Add the specified KeyValue to this Put operation.
|
Increment |
Increment.add(Cell cell)
Add the specified KeyValue to this operation.
|
Append |
Append.add(Cell cell)
Add column and value to this Append operation.
|
Delete |
Delete.addDeleteMarker(Cell kv)
Advanced use only.
|
protected int |
Result.binarySearch(Cell[] kvs,
byte[] family,
byte[] qualifier) |
protected int |
Result.binarySearch(Cell[] kvs,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength)
Searches for the latest value for the specified column.
|
static Result |
Result.create(Cell[] cells)
Instantiate a Result with the specified array of KeyValues.
|
static Result |
Result.create(Cell[] cells,
Boolean exists,
boolean stale) |
static Result |
Result.create(Cell[] cells,
Boolean exists,
boolean stale,
boolean partial) |
Modifier and Type | Method and Description |
---|---|
static Result |
Result.create(List<Cell> cells)
Instantiate a Result with the specified List of KeyValues.
|
static Result |
Result.create(List<Cell> cells,
Boolean exists) |
static Result |
Result.create(List<Cell> cells,
Boolean exists,
boolean stale) |
static Result |
Result.create(List<Cell> cells,
Boolean exists,
boolean stale,
boolean partial) |
Put |
Put.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map) |
Mutation |
Mutation.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map)
Method for setting the put's familyMap
|
Increment |
Increment.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map) |
Delete |
Delete.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map) |
Append |
Append.setFamilyCellMap(NavigableMap<byte[],List<Cell>> map) |
Modifier and Type | Method and Description |
---|---|
Cell |
MultipleColumnPrefixFilter.getNextCellHint(Cell kv) |
Cell |
MultiRowRangeFilter.getNextCellHint(Cell currentKV) |
Cell |
FuzzyRowFilter.getNextCellHint(Cell currentCell) |
Cell |
FilterList.getNextCellHint(Cell currentKV) |
abstract Cell |
Filter.getNextCellHint(Cell currentKV)
If the filter returns the match code SEEK_NEXT_USING_HINT, then it should also tell which is
the next key it must seek to.
|
Cell |
ColumnRangeFilter.getNextCellHint(Cell kv) |
Cell |
ColumnPrefixFilter.getNextCellHint(Cell kv) |
Cell |
ColumnPaginationFilter.getNextCellHint(Cell kv) |
Cell |
WhileMatchFilter.transformCell(Cell v) |
Cell |
TimestampsFilter.transformCell(Cell v) |
Cell |
SkipFilter.transformCell(Cell v) |
Cell |
SingleColumnValueFilter.transformCell(Cell v) |
Cell |
RandomRowFilter.transformCell(Cell v) |
Cell |
PrefixFilter.transformCell(Cell v) |
Cell |
PageFilter.transformCell(Cell v) |
Cell |
MultipleColumnPrefixFilter.transformCell(Cell v) |
Cell |
KeyOnlyFilter.transformCell(Cell cell) |
Cell |
InclusiveStopFilter.transformCell(Cell v) |
Cell |
FirstKeyOnlyFilter.transformCell(Cell v) |
Cell |
FilterList.transformCell(Cell v) |
abstract Cell |
Filter.transformCell(Cell v)
Give the filter a chance to transform the passed KeyValue.
|
Cell |
CompareFilter.transformCell(Cell v) |
Cell |
ColumnRangeFilter.transformCell(Cell v) |
Cell |
ColumnPrefixFilter.transformCell(Cell v) |
Cell |
ColumnPaginationFilter.transformCell(Cell v) |
Cell |
ColumnCountGetFilter.transformCell(Cell v) |
Modifier and Type | Method and Description |
---|---|
Filter.ReturnCode |
WhileMatchFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
ValueFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
TimestampsFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
SkipFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
SingleColumnValueFilter.filterKeyValue(Cell c) |
Filter.ReturnCode |
RowFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
RandomRowFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
QualifierFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
PrefixFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
PageFilter.filterKeyValue(Cell ignored) |
Filter.ReturnCode |
MultipleColumnPrefixFilter.filterKeyValue(Cell kv) |
Filter.ReturnCode |
MultiRowRangeFilter.filterKeyValue(Cell ignored) |
Filter.ReturnCode |
KeyOnlyFilter.filterKeyValue(Cell ignored) |
Filter.ReturnCode |
InclusiveStopFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
FuzzyRowFilter.filterKeyValue(Cell c) |
Filter.ReturnCode |
FirstKeyValueMatchingQualifiersFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
FirstKeyOnlyFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
FilterList.filterKeyValue(Cell v) |
abstract Filter.ReturnCode |
Filter.filterKeyValue(Cell v)
A way to filter based on the column family, column qualifier and/or the column value.
|
Filter.ReturnCode |
FamilyFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
DependentColumnFilter.filterKeyValue(Cell c) |
Filter.ReturnCode |
ColumnRangeFilter.filterKeyValue(Cell kv) |
Filter.ReturnCode |
ColumnPrefixFilter.filterKeyValue(Cell kv) |
Filter.ReturnCode |
ColumnPaginationFilter.filterKeyValue(Cell v) |
Filter.ReturnCode |
ColumnCountGetFilter.filterKeyValue(Cell v) |
Cell |
MultipleColumnPrefixFilter.getNextCellHint(Cell kv) |
Cell |
MultiRowRangeFilter.getNextCellHint(Cell currentKV) |
Cell |
FuzzyRowFilter.getNextCellHint(Cell currentCell) |
Cell |
FilterList.getNextCellHint(Cell currentKV) |
abstract Cell |
Filter.getNextCellHint(Cell currentKV)
If the filter returns the match code SEEK_NEXT_USING_HINT, then it should also tell which is
the next key it must seek to.
|
Cell |
ColumnRangeFilter.getNextCellHint(Cell kv) |
Cell |
ColumnPrefixFilter.getNextCellHint(Cell kv) |
Cell |
ColumnPaginationFilter.getNextCellHint(Cell kv) |
Cell |
WhileMatchFilter.transformCell(Cell v) |
Cell |
TimestampsFilter.transformCell(Cell v) |
Cell |
SkipFilter.transformCell(Cell v) |
Cell |
SingleColumnValueFilter.transformCell(Cell v) |
Cell |
RandomRowFilter.transformCell(Cell v) |
Cell |
PrefixFilter.transformCell(Cell v) |
Cell |
PageFilter.transformCell(Cell v) |
Cell |
MultipleColumnPrefixFilter.transformCell(Cell v) |
Cell |
KeyOnlyFilter.transformCell(Cell cell) |
Cell |
InclusiveStopFilter.transformCell(Cell v) |
Cell |
FirstKeyOnlyFilter.transformCell(Cell v) |
Cell |
FilterList.transformCell(Cell v) |
abstract Cell |
Filter.transformCell(Cell v)
Give the filter a chance to transform the passed KeyValue.
|
Cell |
CompareFilter.transformCell(Cell v) |
Cell |
ColumnRangeFilter.transformCell(Cell v) |
Cell |
ColumnPrefixFilter.transformCell(Cell v) |
Cell |
ColumnPaginationFilter.transformCell(Cell v) |
Cell |
ColumnCountGetFilter.transformCell(Cell v) |
Modifier and Type | Method and Description |
---|---|
void |
SingleColumnValueExcludeFilter.filterRowCells(List<Cell> kvs) |
void |
FilterList.filterRowCells(List<Cell> cells)
Filters that never filter by modifying the returned List of Cells can
inherit this implementation that does nothing.
|
abstract void |
Filter.filterRowCells(List<Cell> kvs)
Chance to alter the list of Cells to be submitted.
|
void |
DependentColumnFilter.filterRowCells(List<Cell> kvs) |
Modifier and Type | Method and Description |
---|---|
Cell |
CellCreator.create(byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
byte[] value,
int voffset,
int vlength) |
Cell |
CellCreator.create(byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
byte[] value,
int voffset,
int vlength,
List<org.apache.hadoop.hbase.Tag> tags) |
Cell |
CellCreator.create(byte[] row,
int roffset,
int rlength,
byte[] family,
int foffset,
int flength,
byte[] qualifier,
int qoffset,
int qlength,
long timestamp,
byte[] value,
int voffset,
int vlength,
String visExpression)
Deprecated.
|
static Cell |
Import.filterKv(Filter filter,
Cell kv)
Attempt to filter out the keyvalue
|
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Cell> |
HFileOutputFormat2.getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
Modifier and Type | Method and Description |
---|---|
static Cell |
Import.filterKv(Filter filter,
Cell kv)
Attempt to filter out the keyvalue
|
Modifier and Type | Method and Description |
---|---|
static int |
Bytes.binarySearch(byte[][] arr,
Cell key,
org.apache.hadoop.io.RawComparator<Cell> comparator)
Binary search for keys in indexes.
|
Modifier and Type | Method and Description |
---|---|
static int |
Bytes.binarySearch(byte[][] arr,
Cell key,
org.apache.hadoop.io.RawComparator<Cell> comparator)
Binary search for keys in indexes.
|
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.