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

public static class TestFilter.SlowScanFilter extends org.apache.hadoop.hbase.filter.FilterBase
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
    Modifier and Type
    Field
    Description
    private static Thread
     

    Fields inherited from class org.apache.hadoop.hbase.filter.Filter

    reversed
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • toByteArray

      public byte[] toByteArray()
      Overrides:
      toByteArray in class org.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 class org.apache.hadoop.hbase.filter.Filter
      Throws:
      IOException
    • filterRow

      public boolean filterRow() throws IOException
      Overrides:
      filterRow in class org.apache.hadoop.hbase.filter.FilterBase
      Throws:
      IOException