org.apache.hadoop.hbase.filter
Class ColumnPaginationFilter
java.lang.Object
org.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.ColumnPaginationFilter
- All Implemented Interfaces:
- Filter, org.apache.hadoop.io.Writable
public class ColumnPaginationFilter
- extends FilterBase
A filter, based on the ColumnCountGetFilter, takes two arguments: limit and offset.
This filter can be used for row-based indexing, where references to other tables are stored across many columns,
in order to efficient lookups and paginated results for end users.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnPaginationFilter
public ColumnPaginationFilter()
- Used during serialization. Do not use.
ColumnPaginationFilter
public ColumnPaginationFilter(int limit,
int offset)
filterKeyValue
public Filter.ReturnCode filterKeyValue(KeyValue v)
- Description copied from class:
FilterBase
- Filters that dont filter by key value can inherit this implementation that
includes all KeyValues.
- Specified by:
filterKeyValue
in interface Filter
- Overrides:
filterKeyValue
in class FilterBase
- Parameters:
v
- the KeyValue in question
- Returns:
- code as described below
- See Also:
Filter.ReturnCode
reset
public void reset()
- Description copied from class:
FilterBase
- Filters that are purely stateless and do nothing in their reset() methods can inherit
this null/empty implementation.
- Specified by:
reset
in interface Filter
- Overrides:
reset
in class FilterBase
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.