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
FieldsModifier and TypeFieldDescriptionprotected byte[]protected booleanprotected byte[]protected boolean -
Constructor Summary
ConstructorsConstructorDescriptionBasicRowRange(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 TypeMethodDescriptionintbooleancontains(byte[] row) booleancontains(byte[] buffer, int offset, int length) booleanabstract byte[]Returns the data to be used to comparethisto another object.byte[]byte[]inthashCode()abstract booleanabstract booleanReturns whether the bounding row used for binary-search is inclusive or not.booleanReturns if start row is inclusive.booleanReturns if stop row is inclusive.booleanisValid()
-
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 comparethisto 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:
compareToin interfaceComparable<MultiRowRangeFilter.BasicRowRange>
-
isAscendingOrder
-