org.hbase.async
Class ColumnRangeFilter

java.lang.Object
  extended by org.hbase.async.ScanFilter
      extended by org.hbase.async.ColumnRangeFilter

public final class ColumnRangeFilter
extends ScanFilter

Filters based on a range of column qualifiers.

This filter is only compatible with HBase 0.92 and newer.

Since:
1.5

Constructor Summary
ColumnRangeFilter(byte[] start_column, boolean start_inclusive, byte[] stop_column, boolean stop_inclusive)
          Constructor.
ColumnRangeFilter(byte[] start_column, byte[] stop_column)
          Constructor.
ColumnRangeFilter(String start_column, boolean start_inclusive, String stop_column, boolean stop_inclusive)
          Constructor for UTF-8 strings.
ColumnRangeFilter(String start_column, String stop_column)
          Constructor for UTF-8 strings.
 
Method Summary
 com.mapr.fs.proto.Dbfilters.FilterMsg getFilterMsg()
           
 String toString()
           
 
Methods inherited from class org.hbase.async.ScanFilter
getFilterId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnRangeFilter

public ColumnRangeFilter(String start_column,
                         String stop_column)
Constructor for UTF-8 strings. Equivalent to ColumnRangeFilter(start_column, true, stop_inclusive, true)


ColumnRangeFilter

public ColumnRangeFilter(byte[] start_column,
                         byte[] stop_column)
Constructor. Equivalent to ColumnRangeFilter(start_column, true, stop_inclusive, true)


ColumnRangeFilter

public ColumnRangeFilter(String start_column,
                         boolean start_inclusive,
                         String stop_column,
                         boolean stop_inclusive)
Constructor for UTF-8 strings.

Parameters:
start_column - The column from which to start returning values. If null, start scanning from the beginning of the row.
start_inclusive - If true, the start column is inclusive.
stop_column - The column up to which to return values. If null, continue scanning until the end of the row.
stop_inclusive - If true, the stop column is inclusive.

ColumnRangeFilter

public ColumnRangeFilter(byte[] start_column,
                         boolean start_inclusive,
                         byte[] stop_column,
                         boolean stop_inclusive)
Constructor.

Parameters:
start_column - The column from which to start returning values. If null, start scanning from the beginning of the row.
start_inclusive - If true, the start column is inclusive.
stop_column - The column up to which to return values. If null, continue scanning until the end of the row.
stop_inclusive - If true, the stop column is inclusive.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getFilterMsg

public com.mapr.fs.proto.Dbfilters.FilterMsg getFilterMsg()
                                                   throws Exception
Throws:
Exception


Copyright © 2010-2015, The Async HBase Authors