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
Fields inherited from class org.apache.hadoop.hbase.filter.Filter
reversed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.filter.Filter.ReturnCode
filterCell
(org.apache.hadoop.hbase.Cell ignored) boolean
byte[]
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase
areSerializedFieldsEqual, createFilterFromArguments, filterAllRemaining, filterRowCells, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, reset, toString, transformCell
Methods inherited from class org.apache.hadoop.hbase.filter.Filter
isReversed, parseFrom, setReversed
-
Field Details
-
ipcHandlerThread
-
-
Constructor Details
-
SlowScanFilter
public SlowScanFilter()
-
-
Method Details
-
toByteArray
- Overrides:
toByteArray
in 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:
filterCell
in classorg.apache.hadoop.hbase.filter.Filter
- Throws:
IOException
-
filterRow
- Overrides:
filterRow
in classorg.apache.hadoop.hbase.filter.FilterBase
- Throws:
IOException
-