private abstract static class MultiRowRangeFilter.BasicRowRange extends Object implements Comparable<MultiRowRangeFilter.BasicRowRange>
Modifier and Type | Field and Description |
---|---|
protected byte[] |
startRow |
protected boolean |
startRowInclusive |
protected byte[] |
stopRow |
protected boolean |
stopRowInclusive |
Constructor and Description |
---|
BasicRowRange() |
BasicRowRange(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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MultiRowRangeFilter.BasicRowRange other) |
boolean |
contains(byte[] row) |
boolean |
contains(byte[] buffer,
int offset,
int length) |
boolean |
equals(Object obj) |
abstract byte[] |
getComparisonData()
Returns the data to be used to compare
this to another object. |
byte[] |
getStartRow() |
byte[] |
getStopRow() |
int |
hashCode() |
abstract boolean |
isAscendingOrder() |
abstract boolean |
isSearchRowInclusive()
Returns whether the bounding row used for binary-search is inclusive or not.
|
boolean |
isStartRowInclusive() |
boolean |
isStopRowInclusive() |
boolean |
isValid() |
protected byte[] startRow
protected boolean startRowInclusive
protected byte[] stopRow
protected boolean stopRowInclusive
public BasicRowRange()
public BasicRowRange(String startRow, boolean startRowInclusive, String stopRow, boolean stopRowInclusive)
public BasicRowRange(byte[] startRow, boolean startRowInclusive, byte[] stopRow, boolean stopRowInclusive)
public byte[] getStartRow()
public byte[] getStopRow()
public boolean isStartRowInclusive()
public boolean isStopRowInclusive()
public boolean contains(byte[] row)
public boolean contains(byte[] buffer, int offset, int length)
public boolean isValid()
public abstract byte[] getComparisonData()
this
to another object.public abstract boolean isSearchRowInclusive()
public int compareTo(MultiRowRangeFilter.BasicRowRange other)
compareTo
in interface Comparable<MultiRowRangeFilter.BasicRowRange>
public abstract boolean isAscendingOrder()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.