@InterfaceAudience.Private public class SparkSQLPushDownFilter extends FilterBase
Filter.ReturnCode| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
SparkSQLPushDownFilter(org.apache.hadoop.hbase.spark.DynamicLogicExpression dynamicLogicExpression,
byte[][] valueFromQueryArray,
HashMap<org.apache.hadoop.hbase.spark.ByteArrayComparable,HashMap<org.apache.hadoop.hbase.spark.ByteArrayComparable,String>> currentCellToColumnIndexMap,
String encoderClassName) |
SparkSQLPushDownFilter(org.apache.hadoop.hbase.spark.DynamicLogicExpression dynamicLogicExpression,
byte[][] valueFromQueryArray,
scala.collection.mutable.MutableList<org.apache.spark.sql.datasources.hbase.Field> fields,
String encoderClassName) |
| Modifier and Type | Method and Description |
|---|---|
Filter.ReturnCode |
filterCell(Cell c)
A way to filter based on the column family, column qualifier and/or the column value.
|
boolean |
filterRow()
Filters that never filter by rows based on previously gathered state from
Filter.filterCell(Cell) can inherit this implementation that
never filters a row. |
static SparkSQLPushDownFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
createFilterFromArguments, filterAllRemaining, filterRowCells, filterRowKey, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, reset, toString, transformCellfilterKeyValue, isReversed, setReversedpublic SparkSQLPushDownFilter(org.apache.hadoop.hbase.spark.DynamicLogicExpression dynamicLogicExpression,
byte[][] valueFromQueryArray,
HashMap<org.apache.hadoop.hbase.spark.ByteArrayComparable,HashMap<org.apache.hadoop.hbase.spark.ByteArrayComparable,String>> currentCellToColumnIndexMap,
String encoderClassName)
public SparkSQLPushDownFilter(org.apache.hadoop.hbase.spark.DynamicLogicExpression dynamicLogicExpression,
byte[][] valueFromQueryArray,
scala.collection.mutable.MutableList<org.apache.spark.sql.datasources.hbase.Field> fields,
String encoderClassName)
public Filter.ReturnCode filterCell(Cell c) throws IOException
FilterReturnCode.NEXT_ROW, it should return
ReturnCode.NEXT_ROW until Filter.reset() is called just in case the caller calls
for the next row.
Concrete implementers can signal a failure condition in their code by throwing an
IOException.filterCell in class Filterc - the Cell in questionIOException - in case an I/O or an filter specific failure needs to be signaled.Filter.ReturnCodepublic boolean filterRow()
throws IOException
FilterBaseFilter.filterCell(Cell) can inherit this implementation that
never filters a row.
Last chance to veto row based on previous Filter.filterCell(Cell) calls. The filter
needs to retain state then return a particular value for this call if they wish to exclude a
row if a certain column is missing (for example).
Concrete implementers can signal a failure condition in their code by throwing an
IOException.filterRow in class FilterBaseIOException - in case an I/O or an filter specific failure needs to be signaled.public static SparkSQLPushDownFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized instanceDeserializationExceptionpublic byte[] toByteArray()
FilterBasetoByteArray in class FilterBaseCopyright © 2007–2019 Cloudera. All rights reserved.