public class OracleKeyFilter
extends org.apache.hadoop.hbase.filter.CompareFilter
Constructor and Description |
---|
OracleKeyFilter(org.apache.hadoop.hbase.filter.CompareFilter.CompareOp op, org.apache.hadoop.hbase.filter.ByteArrayComparable qualifierComparator)
Creates a new instance of an OracleKeyFilter used in getVertices/getEdges operations.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.filter.Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments)
Given the filter's arguments construct an instance of Filter.
|
org.apache.hadoop.hbase.filter.Filter.ReturnCode |
filterKeyValue(org.apache.hadoop.hbase.Cell cell)
Filter the row if the K/V pair is not found in the row data.
|
boolean |
filterRow()
Get filter status for this specified row
|
boolean |
hasFilterRow()
Check if this filter allows to filter a row
|
static OracleKeyFilter |
parseFrom(byte[] pbBytes)
Return a instance of the OracleKeyFilter based on its serialized byte array.
|
void |
reset()
Reset filter row to true.
|
byte[] |
toByteArray()
Write filter's info as a byte array
|
extractArguments, getComparator, getOperator, toString
public OracleKeyFilter(org.apache.hadoop.hbase.filter.CompareFilter.CompareOp op, org.apache.hadoop.hbase.filter.ByteArrayComparable qualifierComparator)
op
- the compare op for row matchingqualifierComparator
- the comparator for row matchingpublic static org.apache.hadoop.hbase.filter.Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
filterArguments
- the filter's arguments.public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.Cell cell)
filterKeyValue
in class org.apache.hadoop.hbase.filter.FilterBase
cell
- the cell in questionpublic boolean filterRow()
filterRow
in class org.apache.hadoop.hbase.filter.FilterBase
public boolean hasFilterRow()
hasFilterRow
in class org.apache.hadoop.hbase.filter.FilterBase
public static OracleKeyFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
org.apache.hadoop.hbase.exceptions.DeserializationException
public void reset()
reset
in class org.apache.hadoop.hbase.filter.FilterBase
public byte[] toByteArray() throws IOException
toByteArray
in class org.apache.hadoop.hbase.filter.FilterBase
IOException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.