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

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

public class RecordFilter
extends Object
implements 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()
           
 boolean filterRowKey(byte[] buffer, int offset, int length)
           
 boolean getVerbose()
           
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 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)

setVerbose

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

getVerbose

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

reset

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

filterRowKey

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

filterAllRemaining

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

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

filterRow

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

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

testFilter

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


Copyright © 2010. All Rights Reserved.