|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.data.Range
public class Range
Constructor Summary | |
---|---|
Range()
Creates a range that goes from negative to positive infinity |
|
Range(java.lang.CharSequence row)
Creates a range that covers an entire row |
|
Range(java.lang.CharSequence startRow,
boolean startRowInclusive,
java.lang.CharSequence endRow,
boolean endRowInclusive)
Creates a range from startRow inclusive to endRow inclusive |
|
Range(java.lang.CharSequence startRow,
java.lang.CharSequence endRow)
Creates a range from startRow inclusive to endRow inclusive |
|
Range(Key startKey,
boolean startKeyInclusive,
Key endKey,
boolean endKeyInclusive)
|
|
Range(Key startKey,
Key endKey)
Creates a range from startKey inclusive to endKey inclusive |
|
Range(Key start,
Key stop,
boolean startKeyInclusive,
boolean stopKeyInclusive,
boolean infiniteStartKey,
boolean infiniteStopKey)
|
|
Range(Range range)
Copy constructor |
|
Range(org.apache.hadoop.io.Text row)
Creates a range that covers an entire row |
|
Range(org.apache.hadoop.io.Text startRow,
boolean startRowInclusive,
org.apache.hadoop.io.Text endRow,
boolean endRowInclusive)
Creates a range from startRow inclusive to endRow inclusive |
|
Range(org.apache.hadoop.io.Text startRow,
org.apache.hadoop.io.Text endRow)
Creates a range from startRow inclusive to endRow inclusive |
|
Range(TRange trange)
|
Method Summary | |
---|---|
boolean |
afterEndKey(Key key)
|
boolean |
beforeStartKey(Key key)
|
Range |
bound(Column min,
Column max)
|
Range |
clip(Range range)
|
Range |
clip(Range range,
boolean returnNullIfDisjoint)
|
int |
compareTo(Range o)
|
boolean |
contains(Key key)
|
boolean |
equals(java.lang.Object o)
|
boolean |
equals(Range otherRange)
|
Key |
getEndKey()
|
Key |
getStartKey()
|
int |
hashCode()
|
boolean |
isEndKeyInclusive()
|
boolean |
isInfiniteStartKey()
|
boolean |
isInfiniteStopKey()
|
boolean |
isStartKeyInclusive()
|
static java.util.List<Range> |
mergeOverlapping(java.util.Collection<Range> ranges)
|
void |
readFields(java.io.DataInput in)
|
java.lang.String |
toString()
|
TRange |
toThrift()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Range()
public Range(Key startKey, Key endKey)
startKey
- set this to null when negative infinity is neededendKey
- set this to null when positive infinity is neededpublic Range(java.lang.CharSequence row)
row
- set this to null to cover all rowspublic Range(org.apache.hadoop.io.Text row)
row
- set this to null to cover all rowspublic Range(org.apache.hadoop.io.Text startRow, org.apache.hadoop.io.Text endRow)
startRow
- set this to null when negative infinity is neededendRow
- set this to null when positive infinity is neededpublic Range(java.lang.CharSequence startRow, java.lang.CharSequence endRow)
startRow
- set this to null when negative infinity is neededendRow
- set this to null when positive infinity is neededpublic Range(org.apache.hadoop.io.Text startRow, boolean startRowInclusive, org.apache.hadoop.io.Text endRow, boolean endRowInclusive)
startRow
- set this to null when negative infinity is neededstartRowInclusive
- determines if the start row is skippedendRow
- set this to null when positive infinity is neededendRowInclusive
- determines if the endRow is includedpublic Range(java.lang.CharSequence startRow, boolean startRowInclusive, java.lang.CharSequence endRow, boolean endRowInclusive)
startRow
- set this to null when negative infinity is neededstartRowInclusive
- determines if the start row is skippedendRow
- set this to null when positive infinity is neededendRowInclusive
- determines if the endRow is includedpublic Range(Key startKey, boolean startKeyInclusive, Key endKey, boolean endKeyInclusive)
startKey
- set this to null when negative infinity is neededstartKeyInclusive
- determines if the ranges includes the start keyendKey
- set this to null when infinity is neededendKeyInclusive
- determines if the range includes the end keypublic Range(Range range)
public Range(Key start, Key stop, boolean startKeyInclusive, boolean stopKeyInclusive, boolean infiniteStartKey, boolean infiniteStopKey)
public Range(TRange trange)
Method Detail |
---|
public Key getStartKey()
public boolean beforeStartKey(Key key)
public Key getEndKey()
public boolean afterEndKey(Key key)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(Range otherRange)
public int compareTo(Range o)
compareTo
in interface java.lang.Comparable<Range>
public boolean contains(Key key)
public static java.util.List<Range> mergeOverlapping(java.util.Collection<Range> ranges)
public Range clip(Range range)
public Range clip(Range range, boolean returnNullIfDisjoint)
public Range bound(Column min, Column max)
public java.lang.String toString()
toString
in class java.lang.Object
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public boolean isStartKeyInclusive()
public boolean isEndKeyInclusive()
public TRange toThrift()
public boolean isInfiniteStartKey()
public boolean isInfiniteStopKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |