Package org.apache.hadoop.hbase.filter
Class TestFilter.SlowScanFilter
java.lang.Object
org.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.TestFilter.SlowScanFilter
- Enclosing class:
- TestFilter
Filter which makes sleeps for a second between each row of a scan. This can be useful for
manual testing of bugs like HBASE-5973. For example:
create 't1', 'f1'
1.upto(100) { |x| put 't1', 'r' + x.to_s, 'f1:q1', 'hi' }
import org.apache.hadoop.hbase.filter.TestFilter
scan 't1', { FILTER => TestFilter::SlowScanFilter.new(), CACHE => 50 }
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.Filter.ReturnCode -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.filter.Filter
reversed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.filter.Filter.ReturnCodefilterCell(org.apache.hadoop.hbase.Cell ignored) booleanbyte[]Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase
areSerializedFieldsEqual, createFilterFromArguments, filterAllRemaining, filterRowCells, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, reset, toString, transformCellMethods inherited from class org.apache.hadoop.hbase.filter.Filter
isReversed, parseFrom, setReversed
-
Field Details
-
ipcHandlerThread
-
-
Constructor Details
-
SlowScanFilter
public SlowScanFilter()
-
-
Method Details
-
toByteArray
- Overrides:
toByteArrayin classorg.apache.hadoop.hbase.filter.FilterBase
-
filterCell
public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterCell(org.apache.hadoop.hbase.Cell ignored) throws IOException - Overrides:
filterCellin classorg.apache.hadoop.hbase.filter.Filter- Throws:
IOException
-
filterRow
- Overrides:
filterRowin classorg.apache.hadoop.hbase.filter.FilterBase- Throws:
IOException
-