public class TransactionFilters extends Object
Filter instances.| Constructor and Description |
|---|
TransactionFilters() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.hbase.filter.Filter |
getVisibilityFilter(Transaction tx,
Map<byte[],Long> ttlByFamily,
boolean allowEmptyValues,
org.apache.hadoop.hbase.regionserver.ScanType scanType)
Creates a new
Filter for returning data only from visible transactions. |
static org.apache.hadoop.hbase.filter.Filter |
getVisibilityFilter(Transaction tx,
Map<byte[],Long> ttlByFamily,
boolean allowEmptyValues,
org.apache.hadoop.hbase.regionserver.ScanType scanType,
org.apache.hadoop.hbase.filter.Filter cellFilter)
Creates a new
Filter for returning data only from visible transactions. |
public static org.apache.hadoop.hbase.filter.Filter getVisibilityFilter(Transaction tx, Map<byte[],Long> ttlByFamily, boolean allowEmptyValues, org.apache.hadoop.hbase.regionserver.ScanType scanType)
Filter for returning data only from visible transactions.tx - the current transaction to apply. Only data visible to this transaction will be returned.ttlByFamily - map of time-to-live (TTL) (in milliseconds) by column family nameallowEmptyValues - if true cells with empty byte[] values will be returned, if false
these will be interpreted as "delete" markers and the column will be filtered outscanType - the type of scan operation being performedpublic static org.apache.hadoop.hbase.filter.Filter getVisibilityFilter(Transaction tx, Map<byte[],Long> ttlByFamily, boolean allowEmptyValues, org.apache.hadoop.hbase.regionserver.ScanType scanType, @Nullable org.apache.hadoop.hbase.filter.Filter cellFilter)
Filter for returning data only from visible transactions.tx - the current transaction to apply. Only data visible to this transaction will be returned.ttlByFamily - map of time-to-live (TTL) (in milliseconds) by column family nameallowEmptyValues - if true cells with empty byte[] values will be returned, if false
these will be interpreted as "delete" markers and the column will be filtered outscanType - the type of scan operation being performedcellFilter - if non-null, this filter will be applied to all cells visible to the current transaction, by
calling Filter.filterKeyValue(org.apache.hadoop.hbase.Cell). If null, then
Filter.ReturnCode#INCLUDE_AND_NEXT_COL will be returned instead.Copyright © 2016. All Rights Reserved.