Package org.apache.hadoop.hbase.filter
Class MultiRowRangeFilter.BasicRowRange
java.lang.Object
org.apache.hadoop.hbase.filter.MultiRowRangeFilter.BasicRowRange
- All Implemented Interfaces:
Comparable<MultiRowRangeFilter.BasicRowRange>
- Direct Known Subclasses:
MultiRowRangeFilter.ReversedRowRange
,MultiRowRangeFilter.RowRange
- Enclosing class:
- MultiRowRangeFilter
private abstract static class MultiRowRangeFilter.BasicRowRange
extends Object
implements Comparable<MultiRowRangeFilter.BasicRowRange>
-
Field Summary
Modifier and TypeFieldDescriptionprotected byte[]
protected boolean
protected byte[]
protected boolean
-
Constructor Summary
ConstructorDescriptionBasicRowRange
(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive) BasicRowRange
(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. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
contains
(byte[] row) boolean
contains
(byte[] buffer, int offset, int length) boolean
abstract byte[]
Returns the data to be used to comparethis
to another object.byte[]
byte[]
int
hashCode()
abstract boolean
abstract boolean
Returns whether the bounding row used for binary-search is inclusive or not.boolean
Returns if start row is inclusive.boolean
Returns if stop row is inclusive.boolean
isValid()
-
Field Details
-
startRow
-
startRowInclusive
-
stopRow
-
stopRowInclusive
-
-
Constructor Details
-
BasicRowRange
public BasicRowRange() -
BasicRowRange
public BasicRowRange(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. -
BasicRowRange
public BasicRowRange(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive)
-
-
Method Details
-
getStartRow
-
getStopRow
-
isStartRowInclusive
Returns if start row is inclusive. -
isStopRowInclusive
Returns if stop row is inclusive. -
contains
-
contains
-
isValid
-
equals
-
hashCode
-
getComparisonData
Returns the data to be used to comparethis
to another object. -
isSearchRowInclusive
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. -
compareTo
- Specified by:
compareTo
in interfaceComparable<MultiRowRangeFilter.BasicRowRange>
-
isAscendingOrder
-