Package org.apache.hadoop.hbase.filter
Class MultiRowRangeFilter.ReversedRowRange
java.lang.Object
org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
org.apache.hadoop.hbase.filter.MultiRowRangeFilter.ReversedRowRange
- All Implemented Interfaces:
Comparable<MultiRowRangeFilter.BasicRowRange>
- Enclosing class:
- MultiRowRangeFilter
@Private
private static class MultiRowRangeFilter.ReversedRowRange
extends MultiRowRangeFilter.BasicRowRange
Internal RowRange that reverses the sort-order to handle reverse scans.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
startRow, startRowInclusive, stopRow, stopRowInclusive
-
Constructor Summary
ConstructorDescriptionReversedRowRange
(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive) -
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
-
ReversedRowRange
public ReversedRowRange(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
-