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
ConstructorsConstructorDescriptionReversedRowRange(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the data to be used to comparethisto another object.booleanbooleanReturns 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.BasicRowRangeReturns the data to be used to comparethisto another object.- Specified by:
getComparisonDatain classMultiRowRangeFilter.BasicRowRange
-
isSearchRowInclusive
Description copied from class:MultiRowRangeFilter.BasicRowRangeReturns 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:
isSearchRowInclusivein classMultiRowRangeFilter.BasicRowRange
-
isAscendingOrder
- Specified by:
isAscendingOrderin classMultiRowRangeFilter.BasicRowRange
-