@InterfaceAudience.Public public class MultiRowRangeFilter extends org.apache.hadoop.hbase.filter.FilterBase
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiRowRangeFilter.RowRange |
Filter.ReturnCode| Constructor and Description |
|---|
MultiRowRangeFilter(List<MultiRowRangeFilter.RowRange> list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that
never stops the filter early.
|
Filter.ReturnCode |
filterCell(Cell ignored)
A way to filter based on the column family, column qualifier and/or the column value.
|
Filter.ReturnCode |
filterKeyValue(Cell ignored)
Deprecated.
|
boolean |
filterRowKey(Cell firstRowCell)
Filters a row based on the row key.
|
Cell |
getNextCellHint(Cell currentKV)
Filters that are not sure which key must be next seeked to, can inherit
this implementation that, by default, returns a null Cell.
|
List<MultiRowRangeFilter.RowRange> |
getRowRanges() |
int |
hashCode() |
static MultiRowRangeFilter |
parseFrom(byte[] pbBytes) |
static List<MultiRowRangeFilter.RowRange> |
sortAndMerge(List<MultiRowRangeFilter.RowRange> ranges)
sort the ranges and if the ranges with overlap, then merge them.
|
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
createFilterFromArguments, filterRow, filterRowCells, filterRowKey, hasFilterRow, isFamilyEssential, reset, toString, transformCellisReversed, setReversedpublic MultiRowRangeFilter(List<MultiRowRangeFilter.RowRange> list)
list - A list of RowRangepublic List<MultiRowRangeFilter.RowRange> getRowRanges()
public boolean filterAllRemaining()
org.apache.hadoop.hbase.filter.FilterBaseIOException.filterAllRemaining in class org.apache.hadoop.hbase.filter.FilterBasepublic boolean filterRowKey(Cell firstRowCell)
FilterFilter.filterCell(Cell) below.
If Filter.filterAllRemaining() returns true, then Filter.filterRowKey(Cell) should
also return true.
Concrete implementers can signal a failure condition in their code by throwing an
IOException.filterRowKey in class org.apache.hadoop.hbase.filter.FilterBasefirstRowCell - The first cell coming in the new row@Deprecated public Filter.ReturnCode filterKeyValue(Cell ignored)
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.filterKeyValue in class Filterignored - the Cell in questionFilter.ReturnCodepublic Filter.ReturnCode filterCell(Cell ignored)
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 Filterignored - the Cell in questionFilter.ReturnCodepublic Cell getNextCellHint(Cell currentKV)
org.apache.hadoop.hbase.filter.FilterBaseIOException.getNextCellHint in class org.apache.hadoop.hbase.filter.FilterBasepublic byte[] toByteArray()
org.apache.hadoop.hbase.filter.FilterBasetoByteArray in class org.apache.hadoop.hbase.filter.FilterBasepublic static MultiRowRangeFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes - A pb serialized instanceorg.apache.hadoop.hbase.exceptions.DeserializationExceptionpublic static List<MultiRowRangeFilter.RowRange> sortAndMerge(List<MultiRowRangeFilter.RowRange> ranges)
ranges - the list of ranges to sort and merge.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.