org.apache.hadoop.hbase.hbql.filter
Class RecordFilter

java.lang.Object
  extended by org.apache.hadoop.hbase.filter.FilterBase
      extended by org.apache.hadoop.hbase.hbql.filter.InstrumentedFilter
          extended by org.apache.hadoop.hbase.hbql.filter.RecordFilter
All Implemented Interfaces:
org.apache.hadoop.hbase.filter.Filter, org.apache.hadoop.io.Writable

public class RecordFilter
extends InstrumentedFilter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.Filter.ReturnCode
 
Field Summary
 HRecordImpl record
           
 
Constructor Summary
RecordFilter()
           
 
Method Summary
 boolean filterAllRemaining()
           
 org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.KeyValue v)
           
 boolean filterRow()
           
 void filterRow(List<org.apache.hadoop.hbase.KeyValue> keyValues)
           
 boolean filterRowKey(byte[] buffer, int offset, int length)
           
 boolean getVerbose()
           
 boolean hasFilterRow()
           
static RecordFilter newRecordFilter(ExpressionTree expressionTree)
           
 void readFields(DataInput in)
           
 void reset()
           
 void setVerbose(boolean verbose)
           
static void testFilter(RecordFilter origFilter)
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase
getNextKeyHint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

record

public HRecordImpl record
Constructor Detail

RecordFilter

public RecordFilter()
Method Detail

newRecordFilter

public static RecordFilter newRecordFilter(ExpressionTree expressionTree)

hasFilterRow

public boolean hasFilterRow()
Specified by:
hasFilterRow in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
hasFilterRow in class org.apache.hadoop.hbase.filter.FilterBase

setVerbose

public void setVerbose(boolean verbose)
Specified by:
setVerbose in class InstrumentedFilter

getVerbose

public boolean getVerbose()
Specified by:
getVerbose in class InstrumentedFilter

reset

public void reset()
Specified by:
reset in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
reset in class org.apache.hadoop.hbase.filter.FilterBase

filterRowKey

public boolean filterRowKey(byte[] buffer,
                            int offset,
                            int length)
Specified by:
filterRowKey in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
filterRowKey in class org.apache.hadoop.hbase.filter.FilterBase

filterAllRemaining

public boolean filterAllRemaining()
Specified by:
filterAllRemaining in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
filterAllRemaining in class org.apache.hadoop.hbase.filter.FilterBase

filterRow

public void filterRow(List<org.apache.hadoop.hbase.KeyValue> keyValues)
Specified by:
filterRow in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
filterRow in class org.apache.hadoop.hbase.filter.FilterBase

filterKeyValue

public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.KeyValue v)
Specified by:
filterKeyValue in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
filterKeyValue in class org.apache.hadoop.hbase.filter.FilterBase

filterRow

public boolean filterRow()
Specified by:
filterRow in interface org.apache.hadoop.hbase.filter.Filter
Overrides:
filterRow in class org.apache.hadoop.hbase.filter.FilterBase

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

testFilter

public static void testFilter(RecordFilter origFilter)
                       throws HBqlException,
                              IOException
Throws:
HBqlException
IOException


Copyright © 2011. All Rights Reserved.