public class InclusiveStopFilter extends FilterBase
Filter.ReturnCode
Constructor and Description |
---|
InclusiveStopFilter() |
InclusiveStopFilter(byte[] stopRowKey) |
Modifier and Type | Method and Description |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that
never stops the filter early.
|
Filter.ReturnCode |
filterKeyValue(KeyValue v)
Filters that dont filter by key value can inherit this implementation that
includes all KeyValues.
|
boolean |
filterRowKey(byte[] buffer,
int offset,
int length)
Filters that do not filter by row key can inherit this implementation that
never filters anything.
|
byte[] |
getStopRowKey() |
void |
readFields(DataInput in) |
String |
toString()
Return filter's info for debugging and logging purpose.
|
void |
write(DataOutput out) |
filterRow, filterRow, getNextKeyHint, hasFilterRow, isFamilyEssential, isFamilyEssential, reset, transform
public InclusiveStopFilter()
public InclusiveStopFilter(byte[] stopRowKey)
public byte[] getStopRowKey()
public Filter.ReturnCode filterKeyValue(KeyValue v)
FilterBase
filterKeyValue
in interface Filter
filterKeyValue
in class FilterBase
v
- the KeyValue in questionFilter.ReturnCode
public boolean filterRowKey(byte[] buffer, int offset, int length)
FilterBase
filterRowKey
in interface Filter
filterRowKey
in class FilterBase
buffer
- buffer containing row keyoffset
- offset into buffer where row key startslength
- length of the row keypublic boolean filterAllRemaining()
FilterBase
filterAllRemaining
in interface Filter
filterAllRemaining
in class FilterBase
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
public String toString()
FilterBase
toString
in class FilterBase
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.