|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.wal.HLogKey
public class HLogKey
A Key for an entry in the change log. The log intermingles edits to many tables and rows, so each log entry identifies the appropriate table and row. Within a table and row, they're also sorted.
Some Transactional edits (START, COMMIT, ABORT) will not have an associated row.
| Constructor Summary | |
|---|---|
HLogKey()
Writable Consructor -- Do not use. |
|
HLogKey(byte[] encodedRegionName,
byte[] tablename,
long logSeqNum,
long now)
Create the log key! We maintain the tablename mainly for debugging purposes. |
|
| Method Summary | |
|---|---|
int |
compareTo(HLogKey o)
|
boolean |
equals(java.lang.Object obj)
|
byte |
getClusterId()
Get the id of the original cluster |
byte[] |
getEncodedRegionName()
|
long |
getLogSeqNum()
|
byte[] |
getTablename()
|
long |
getWriteTime()
|
int |
hashCode()
|
void |
readFields(java.io.DataInput in)
|
void |
setClusterId(byte clusterId)
Set the cluster id of this key |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HLogKey()
public HLogKey(byte[] encodedRegionName,
byte[] tablename,
long logSeqNum,
long now)
encodedRegionName - Encoded name of the region as returned by
HRegionInfo#getEncodedNameAsBytes().tablename - - name of tablelogSeqNum - - log sequence numbernow - Time at which this edit was written.| Method Detail |
|---|
public byte[] getEncodedRegionName()
public byte[] getTablename()
public long getLogSeqNum()
public long getWriteTime()
public byte getClusterId()
public void setClusterId(byte clusterId)
clusterId - public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(HLogKey o)
compareTo in interface java.lang.Comparable<HLogKey>
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||