public class TransactionVisibilityFilter
extends org.apache.hadoop.hbase.filter.FilterBase
Scan or Get operation performed.| Constructor and Description |
|---|
TransactionVisibilityFilter(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. |
TransactionVisibilityFilter(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. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.filter.Filter.ReturnCode |
filterKeyValue(org.apache.hadoop.hbase.KeyValue kv) |
void |
readFields(DataInput dataInput) |
void |
write(DataOutput dataOutput) |
public TransactionVisibilityFilter(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 TransactionVisibilityFilter(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.KeyValue). If null, then
Filter.ReturnCode#INCLUDE_AND_NEXT_COL will be returned instead.public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.KeyValue kv)
filterKeyValue in interface org.apache.hadoop.hbase.filter.FilterfilterKeyValue in class org.apache.hadoop.hbase.filter.FilterBasepublic void write(DataOutput dataOutput) throws IOException
IOExceptionpublic void readFields(DataInput dataInput) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.