Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.filter |
Provides row-level filters applied to HRegion scan results during calls to
ResultScanner.next() . |
org.apache.hadoop.hbase.regionserver | |
org.apache.hadoop.hbase.rest.model | |
org.apache.hadoop.hbase.security.access |
Modifier and Type | Method and Description |
---|---|
static int |
PrivateCellUtil.compareFamily(Cell cell,
ByteArrayComparable comparator)
Compare cell's column family against given comparator
|
static int |
PrivateCellUtil.compareQualifier(Cell cell,
ByteArrayComparable comparator)
Compare cell's qualifier against given comparator
|
static int |
PrivateCellUtil.compareRow(Cell cell,
ByteArrayComparable comparator)
Compare cell's row against given comparator
|
static int |
PrivateCellUtil.compareValue(Cell cell,
ByteArrayComparable comparator)
Compare cell's value against given comparator
|
Modifier and Type | Method and Description |
---|---|
default boolean |
RegionObserver.postCheckAndDelete(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result)
Called after checkAndDelete
|
default boolean |
RegionObserver.postCheckAndPut(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put,
boolean result)
Called after checkAndPut
|
default boolean |
RegionObserver.preCheckAndDelete(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result)
Called before checkAndDelete.
|
default boolean |
RegionObserver.preCheckAndDeleteAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result)
Called before checkAndDelete but after acquiring rowock.
|
default boolean |
RegionObserver.preCheckAndPut(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put,
boolean result)
Called before checkAndPut.
|
default boolean |
RegionObserver.preCheckAndPutAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put,
boolean result)
Called before checkAndPut but after acquiring rowlock.
|
Modifier and Type | Class and Description |
---|---|
class |
BigDecimalComparator
A BigDecimal comparator which numerical compares against the specified byte array
|
class |
BinaryComparator
A binary comparator which lexicographically compares against the specified
byte array using
Bytes.compareTo(byte[], byte[]) . |
class |
BinaryComponentComparator
A comparator which compares against a specified byte array, but only
compares specific portion of the byte array.
|
class |
BinaryPrefixComparator
A comparator which compares against a specified byte array, but only compares
up to the length of this byte array.
|
class |
BitComparator
A bit comparator which performs the specified bitwise operation on each of the bytes
with the specified byte array.
|
class |
LongComparator
A long comparator which numerical compares against the specified byte array
|
class |
NullComparator
A binary comparator which lexicographically compares against the specified
byte array using
Bytes.compareTo(byte[], byte[]) . |
class |
RegexStringComparator
This comparator is for use with
CompareFilter implementations, such
as RowFilter , QualifierFilter , and ValueFilter , for
filtering based on the value of a given column. |
class |
SubstringComparator
This comparator is for use with SingleColumnValueFilter, for filtering based on
the value of a given column.
|
Modifier and Type | Field and Description |
---|---|
protected ByteArrayComparable |
SingleColumnValueFilter.comparator |
protected ByteArrayComparable |
CompareFilter.comparator |
private ByteArrayComparable |
ColumnValueFilter.comparator |
Modifier and Type | Method and Description |
---|---|
static ByteArrayComparable |
ParseFilter.createComparator(byte[] comparator)
Parses a comparator of the form comparatorType:comparatorValue form and returns a comparator
|
ByteArrayComparable |
SingleColumnValueFilter.getComparator() |
ByteArrayComparable |
CompareFilter.getComparator() |
ByteArrayComparable |
ColumnValueFilter.getComparator() |
static ByteArrayComparable |
ByteArrayComparable.parseFrom(byte[] pbBytes) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
ByteArrayComparable.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
BinaryComponentComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
BitComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
BinaryPrefixComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
BinaryComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
SubstringComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
RegexStringComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
(package private) boolean |
NullComparator.areSerializedFieldsEqual(ByteArrayComparable other) |
protected boolean |
CompareFilter.compareFamily(CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
Cell cell)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
CompareFilter.compareFamily(CompareOperator, ByteArrayComparable, Cell) |
protected boolean |
CompareFilter.compareFamily(CompareOperator op,
ByteArrayComparable comparator,
Cell cell) |
protected boolean |
CompareFilter.compareQualifier(CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
Cell cell)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
CompareFilter.compareQualifier(CompareOperator, ByteArrayComparable, Cell) |
protected boolean |
CompareFilter.compareQualifier(CompareOperator op,
ByteArrayComparable comparator,
Cell cell) |
protected boolean |
CompareFilter.compareRow(CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
Cell cell)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
CompareFilter.compareRow(CompareOperator, ByteArrayComparable, Cell) |
protected boolean |
CompareFilter.compareRow(CompareOperator op,
ByteArrayComparable comparator,
Cell cell) |
protected boolean |
CompareFilter.compareValue(CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
Cell cell)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
CompareFilter.compareValue(CompareOperator, ByteArrayComparable, Cell) |
protected boolean |
CompareFilter.compareValue(CompareOperator op,
ByteArrayComparable comparator,
Cell cell) |
private boolean |
ColumnValueFilter.compareValue(CompareOperator op,
ByteArrayComparable comparator,
Cell cell)
This method is used to determine a cell should be included or filtered out.
|
Constructor and Description |
---|
ColumnValueFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator) |
CompareFilter(CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use other constructor.
|
CompareFilter(CompareOperator op,
ByteArrayComparable comparator)
Constructor.
|
DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn,
CompareFilter.CompareOp valueCompareOp,
ByteArrayComparable valueComparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
DependentColumnFilter.DependentColumnFilter(byte[], byte[], boolean, CompareOperator, ByteArrayComparable)
instead. |
DependentColumnFilter(byte[] family,
byte[] qualifier,
boolean dropDependentColumn,
CompareOperator op,
ByteArrayComparable valueComparator)
Build a dependent column filter with value checking
dependent column varies will be compared using the supplied
compareOp and comparator, for usage of which
refer to
CompareFilter |
FamilyFilter(CompareFilter.CompareOp familyCompareOp,
ByteArrayComparable familyComparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
FamilyFilter.FamilyFilter(CompareOperator, ByteArrayComparable) |
FamilyFilter(CompareOperator op,
ByteArrayComparable familyComparator)
Constructor.
|
QualifierFilter(CompareFilter.CompareOp op,
ByteArrayComparable qualifierComparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
QualifierFilter.QualifierFilter(CompareOperator, ByteArrayComparable) instead. |
QualifierFilter(CompareOperator op,
ByteArrayComparable qualifierComparator)
Constructor.
|
RowFilter(CompareFilter.CompareOp rowCompareOp,
ByteArrayComparable rowComparator)
Deprecated.
Since 2.0.0. Will remove in 3.0.0. Use
RowFilter.RowFilter(CompareOperator, ByteArrayComparable) } instead. |
RowFilter(CompareOperator op,
ByteArrayComparable rowComparator)
Constructor.
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueExcludeFilter.SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable) |
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueExcludeFilter.SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable, boolean, boolean) |
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator)
Constructor for binary compare of the value of a single column.
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Constructor for protobuf deserialization only.
|
SingleColumnValueFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueFilter.SingleColumnValueFilter(byte[], byte[], CompareOperator, ByteArrayComparable) instead. |
SingleColumnValueFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueFilter.SingleColumnValueFilter(byte[], byte[], CompareOperator, ByteArrayComparable,
boolean, boolean) instead. |
SingleColumnValueFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator)
Constructor for binary compare of the value of a single column.
|
SingleColumnValueFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Constructor for protobuf deserialization only.
|
ValueFilter(CompareFilter.CompareOp valueCompareOp,
ByteArrayComparable valueComparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0.
Use
ValueFilter.ValueFilter(CompareOperator, ByteArrayComparable) |
ValueFilter(CompareOperator valueCompareOp,
ByteArrayComparable valueComparator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
Region.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Mutation mutation)
Atomically checks if a row/family/qualifier value matches the expected value and if it does,
it performs the mutation.
|
boolean |
Region.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
Mutation mutation)
Atomically checks if a row/family/qualifier value matches the expected value and if it does,
it performs the mutation.
|
boolean |
HRegion.checkAndMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
Mutation mutation) |
default boolean |
Region.checkAndRowMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
RowMutations mutations)
Atomically checks if a row/family/qualifier value matches the expected values and if it does,
it performs the row mutations.
|
boolean |
Region.checkAndRowMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
RowMutations mutations)
Atomically checks if a row/family/qualifier value matches the expected values and if it does,
it performs the row mutations.
|
boolean |
HRegion.checkAndRowMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
RowMutations rm) |
private boolean |
RSRpcServices.checkAndRowMutate(HRegion region,
List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.Action> actions,
CellScanner cellScanner,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.RegionActionResult.Builder builder,
ActivePolicyEnforcement spaceQuotaEnforcement)
Mutate a list of rows atomically.
|
private boolean |
HRegion.doCheckAndRowMutate(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
TimeRange timeRange,
RowMutations rowMutations,
Mutation mutation)
checkAndMutate and checkAndRowMutate are 90% the same.
|
boolean |
RegionCoprocessorHost.postCheckAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result) |
boolean |
RegionCoprocessorHost.postCheckAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put,
boolean result) |
Boolean |
RegionCoprocessorHost.preCheckAndDelete(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete)
Supports Coprocessor 'bypass'.
|
Boolean |
RegionCoprocessorHost.preCheckAndDeleteAfterRowLock(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete)
Supports Coprocessor 'bypass'.
|
Boolean |
RegionCoprocessorHost.preCheckAndPut(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put)
Supports Coprocessor 'bypass'.
|
Boolean |
RegionCoprocessorHost.preCheckAndPutAfterRowLock(byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put)
Supports Coprocessor 'bypass'.
|
Modifier and Type | Method and Description |
---|---|
ByteArrayComparable |
ScannerModel.FilterModel.ByteArrayComparableModel.build() |
Constructor and Description |
---|
ByteArrayComparableModel(ByteArrayComparable comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
AccessController.preCheckAndDelete(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result) |
boolean |
AccessController.preCheckAndDeleteAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Delete delete,
boolean result) |
boolean |
AccessController.preCheckAndPut(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
Put put,
boolean result) |
boolean |
AccessController.preCheckAndPutAfterRowLock(ObserverContext<RegionCoprocessorEnvironment> c,
byte[] row,
byte[] family,
byte[] qualifier,
CompareOperator opp,
ByteArrayComparable comparator,
Put put,
boolean result) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.