public class ColumnCountGetFilter extends FilterBase
filterAllRemaining()
returns true. This
makes this filter unsuitable as a Scan filter.Filter.ReturnCode
Constructor and Description |
---|
ColumnCountGetFilter()
Used during serialization.
|
ColumnCountGetFilter(int n) |
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.
|
int |
getLimit() |
void |
readFields(DataInput in) |
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
|
String |
toString()
Return filter's info for debugging and logging purpose.
|
void |
write(DataOutput out) |
filterRow, filterRow, filterRowKey, getNextKeyHint, hasFilterRow, isFamilyEssential, isFamilyEssential, transform
public ColumnCountGetFilter()
public ColumnCountGetFilter(int n)
public int getLimit()
public boolean filterAllRemaining()
FilterBase
filterAllRemaining
in interface Filter
filterAllRemaining
in class FilterBase
public Filter.ReturnCode filterKeyValue(KeyValue v)
FilterBase
filterKeyValue
in interface Filter
filterKeyValue
in class FilterBase
v
- the KeyValue in questionFilter.ReturnCode
public void reset()
FilterBase
reset
in interface Filter
reset
in class FilterBase
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public void readFields(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public String toString()
FilterBase
toString
in class FilterBase
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.