|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.HLogEdit
public class HLogEdit
A log value. These aren't sortable; you need to sort by the matching HLogKey. The table and row are already identified in HLogKey. This just indicates the column and value.
Nested Class Summary | |
---|---|
static class |
HLogEdit.TransactionalOperation
If transactional log entry, these are the op codes |
Field Summary | |
---|---|
static ImmutableBytesWritable |
completeCacheFlush
Value written to HLog on a complete cache flush |
static ImmutableBytesWritable |
deleteBytes
Value stored for a deleted item |
Constructor Summary | |
---|---|
HLogEdit()
Default constructor used by Writable |
|
HLogEdit(byte[] c,
byte[] bval,
long timestamp)
Construct a fully initialized HLogEdit |
|
HLogEdit(long transactionId,
BatchOperation op,
long timestamp)
Construct a WRITE transaction. |
|
HLogEdit(long transactionId,
HLogEdit.TransactionalOperation op)
Construct a transactional operation (BEGIN, ABORT, or COMMIT). |
Method Summary | |
---|---|
byte[] |
getColumn()
|
HLogEdit.TransactionalOperation |
getOperation()
Get the operation. |
long |
getTimestamp()
|
Long |
getTransactionId()
Get the transactionId, or null if this is not a transactional edit. |
byte[] |
getVal()
|
static boolean |
isDeleted(byte[] value)
|
boolean |
isTransactionEntry()
|
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static ImmutableBytesWritable deleteBytes
public static ImmutableBytesWritable completeCacheFlush
Constructor Detail |
---|
public HLogEdit()
public HLogEdit(byte[] c, byte[] bval, long timestamp)
c
- column namebval
- valuetimestamp
- timestamp for modificationpublic HLogEdit(long transactionId, BatchOperation op, long timestamp)
transactionId
- op
- timestamp
- public HLogEdit(long transactionId, HLogEdit.TransactionalOperation op)
transactionId
- op
- Method Detail |
---|
public static boolean isDeleted(byte[] value)
value
-
deleteBytes
.public byte[] getColumn()
public byte[] getVal()
public long getTimestamp()
public boolean isTransactionEntry()
public Long getTransactionId()
public HLogEdit.TransactionalOperation getOperation()
public String toString()
toString
in class Object
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |