|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.data.KeyExtent
public class KeyExtent
Constructor Summary | |
---|---|
KeyExtent()
Default constructor |
|
KeyExtent(KeyExtent extent)
|
|
KeyExtent(org.apache.hadoop.io.Text flattenedExtent,
org.apache.hadoop.io.Text prevEndRow)
|
|
KeyExtent(org.apache.hadoop.io.Text table,
org.apache.hadoop.io.Text endRow,
org.apache.hadoop.io.Text prevEndRow)
|
|
KeyExtent(org.apache.hadoop.io.Text flattenedExtent,
Value prevEndRow)
|
|
KeyExtent(TKeyExtent tke)
|
Method Summary | |
---|---|
int |
compareTo(KeyExtent other)
Compares extents based on rows |
boolean |
contains(org.apache.hadoop.io.BinaryComparable row)
|
boolean |
contains(ByteSequence bsrow)
|
static org.apache.hadoop.io.Text |
decodePrevEndRow(Value ibw)
|
static Value |
encodePrevEndRow(org.apache.hadoop.io.Text per)
|
boolean |
equals(Object o)
|
static SortedSet<KeyExtent> |
findChildren(KeyExtent ke,
SortedSet<KeyExtent> tablets)
|
static KeyExtent |
findContainingExtent(KeyExtent extent,
SortedSet<KeyExtent> extents)
|
static Set<KeyExtent> |
findOverlapping(KeyExtent nke,
SortedMap<KeyExtent,?> extents)
|
static Set<KeyExtent> |
findOverlapping(KeyExtent nke,
SortedSet<KeyExtent> extents)
|
org.apache.hadoop.io.Text |
getEndRow()
Returns this extent's end row |
static Collection<KeyExtent> |
getKeyExtentsForRange(org.apache.hadoop.io.Text startRow,
org.apache.hadoop.io.Text endRow,
Set<KeyExtent> kes)
Deprecated. this method not intended for public use and is likely to be removed in a future version. |
org.apache.hadoop.io.Text |
getMetadataEntry()
Returns a String representing this extent's entry in the Metadata table |
static org.apache.hadoop.io.Text |
getMetadataEntry(KeyExtent extent)
|
static org.apache.hadoop.io.Text |
getMetadataEntry(org.apache.hadoop.io.Text tableId,
org.apache.hadoop.io.Text endRow)
|
org.apache.hadoop.io.Text |
getPrevEndRow()
Return the previous extent's end row |
Mutation |
getPrevRowUpdateMutation()
Returns a String representing the previous extent's entry in the Metadata table |
static Mutation |
getPrevRowUpdateMutation(KeyExtent ke)
|
org.apache.hadoop.io.Text |
getTableId()
Returns the extent's table id |
UUID |
getUUID()
|
int |
hashCode()
|
boolean |
isMeta()
|
boolean |
isPreviousExtent(KeyExtent prevExtent)
|
boolean |
isRootTablet()
|
boolean |
overlaps(KeyExtent other)
|
void |
readFields(DataInput in)
Populates the extents data fields from a DataInput object |
void |
setEndRow(org.apache.hadoop.io.Text endRow)
Sets this extent's end row |
void |
setPrevEndRow(org.apache.hadoop.io.Text prevEndRow)
Sets the previous extent's end row |
void |
setTableId(org.apache.hadoop.io.Text tId)
Sets the extents table id |
static byte[] |
tableOfMetadataRow(org.apache.hadoop.io.Text row)
|
Range |
toDataRange()
|
Range |
toMetadataRange()
|
String |
toString()
|
TKeyExtent |
toThrift()
|
void |
write(DataOutput out)
Writes this extent's data fields to a DataOutput object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KeyExtent()
public KeyExtent(org.apache.hadoop.io.Text table, org.apache.hadoop.io.Text endRow, org.apache.hadoop.io.Text prevEndRow)
public KeyExtent(KeyExtent extent)
public KeyExtent(TKeyExtent tke)
public KeyExtent(org.apache.hadoop.io.Text flattenedExtent, Value prevEndRow)
public KeyExtent(org.apache.hadoop.io.Text flattenedExtent, org.apache.hadoop.io.Text prevEndRow)
Method Detail |
---|
public org.apache.hadoop.io.Text getMetadataEntry()
public static org.apache.hadoop.io.Text getMetadataEntry(org.apache.hadoop.io.Text tableId, org.apache.hadoop.io.Text endRow)
public void setTableId(org.apache.hadoop.io.Text tId)
public org.apache.hadoop.io.Text getTableId()
public void setEndRow(org.apache.hadoop.io.Text endRow)
public org.apache.hadoop.io.Text getEndRow()
public org.apache.hadoop.io.Text getPrevEndRow()
public void setPrevEndRow(org.apache.hadoop.io.Text prevEndRow)
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public Mutation getPrevRowUpdateMutation()
@Deprecated public static Collection<KeyExtent> getKeyExtentsForRange(org.apache.hadoop.io.Text startRow, org.apache.hadoop.io.Text endRow, Set<KeyExtent> kes)
public static org.apache.hadoop.io.Text decodePrevEndRow(Value ibw)
public static Value encodePrevEndRow(org.apache.hadoop.io.Text per)
public static Mutation getPrevRowUpdateMutation(KeyExtent ke)
public int compareTo(KeyExtent other)
compareTo
in interface Comparable<KeyExtent>
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public UUID getUUID()
public static byte[] tableOfMetadataRow(org.apache.hadoop.io.Text row)
public boolean contains(ByteSequence bsrow)
public boolean contains(org.apache.hadoop.io.BinaryComparable row)
public Range toDataRange()
public Range toMetadataRange()
public static SortedSet<KeyExtent> findChildren(KeyExtent ke, SortedSet<KeyExtent> tablets)
public static KeyExtent findContainingExtent(KeyExtent extent, SortedSet<KeyExtent> extents)
public static Set<KeyExtent> findOverlapping(KeyExtent nke, SortedSet<KeyExtent> extents)
public boolean overlaps(KeyExtent other)
public static Set<KeyExtent> findOverlapping(KeyExtent nke, SortedMap<KeyExtent,?> extents)
public static org.apache.hadoop.io.Text getMetadataEntry(KeyExtent extent)
public TKeyExtent toThrift()
public boolean isPreviousExtent(KeyExtent prevExtent)
public boolean isMeta()
public boolean isRootTablet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |