Package org.apache.hadoop.hbase.filter
Class MultiRowRangeFilter.RowRange
java.lang.Object
org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
org.apache.hadoop.hbase.filter.MultiRowRangeFilter.RowRange
- All Implemented Interfaces:
Comparable<MultiRowRangeFilter.BasicRowRange>
- Enclosing class:
- MultiRowRangeFilter
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
startRow, startRowInclusive, stopRow, stopRowInclusive
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the data to be used to comparethis
to another object.boolean
boolean
Returns whether the bounding row used for binary-search is inclusive or not.Methods inherited from class org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
compareTo, contains, contains, equals, getStartRow, getStopRow, hashCode, isStartRowInclusive, isStopRowInclusive, isValid
-
Constructor Details
-
RowRange
public RowRange() -
RowRange
public RowRange(String startRow, boolean startRowInclusive, String stopRow, boolean stopRowInclusive) If the startRow is empty or null, set it to HConstants.EMPTY_BYTE_ARRAY, means begin at the start row of the table. If the stopRow is empty or null, set it to HConstants.EMPTY_BYTE_ARRAY, means end of the last row of table. -
RowRange
public RowRange(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive)
-
-
Method Details
-
getComparisonData
Description copied from class:MultiRowRangeFilter.BasicRowRange
Returns the data to be used to comparethis
to another object.- Specified by:
getComparisonData
in classMultiRowRangeFilter.BasicRowRange
-
isSearchRowInclusive
Description copied from class:MultiRowRangeFilter.BasicRowRange
Returns whether the bounding row used for binary-search is inclusive or not. For forward scans, we would check the starRow, but we would check the stopRow for the reverse scan case.- Specified by:
isSearchRowInclusive
in classMultiRowRangeFilter.BasicRowRange
-
isAscendingOrder
- Specified by:
isAscendingOrder
in classMultiRowRangeFilter.BasicRowRange
-