com.nhncorp.neptune.tabletserver
Class ChangeLog

java.lang.Object
  extended by com.nhncorp.neptune.tabletserver.ChangeLog
All Implemented Interfaces:
NWritable

public class ChangeLog
extends java.lang.Object
implements NWritable


Field Summary
static long USE_SERVER_TIMESTAMP
           
 
Constructor Summary
ChangeLog()
           
ChangeLog(int operation, java.lang.String tableName, Row.Key rowKey, java.lang.String columnName, Cell.Key columnKey, long timestamp, byte[] value)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getBytes()
           
 int getByteSize()
           
 Cell.Key getCellKey()
           
static GPath getChangeLogPath(NConfiguration conf, TabletInfo tabletInfo)
           
static GPath getChangeLogTempPath(NConfiguration conf, TabletInfo tabletInfo, java.lang.String fileId)
           
 java.lang.String getColumnName()
           
 int getOperation()
           
 java.lang.String getOperationName()
           
 Row.Key getRowKey()
           
 java.lang.String getTableName()
           
 long getTimestamp()
           
 byte[] getValue()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USE_SERVER_TIMESTAMP

public static final long USE_SERVER_TIMESTAMP
See Also:
Constant Field Values
Constructor Detail

ChangeLog

public ChangeLog(int operation,
                 java.lang.String tableName,
                 Row.Key rowKey,
                 java.lang.String columnName,
                 Cell.Key columnKey,
                 long timestamp,
                 byte[] value)

ChangeLog

public ChangeLog()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getCellKey

public Cell.Key getCellKey()

getColumnName

public java.lang.String getColumnName()

getOperation

public int getOperation()

getRowKey

public Row.Key getRowKey()

getTableName

public java.lang.String getTableName()

getValue

public byte[] getValue()

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from interface: NWritable
Writes the fields of this object to out.

Specified by:
write in interface NWritable
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Description copied from interface: NWritable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface NWritable
Throws:
java.io.IOException

getByteSize

public int getByteSize()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOperationName

public java.lang.String getOperationName()

getTimestamp

public long getTimestamp()

getChangeLogPath

public static GPath getChangeLogPath(NConfiguration conf,
                                     TabletInfo tabletInfo)

getChangeLogTempPath

public static GPath getChangeLogTempPath(NConfiguration conf,
                                         TabletInfo tabletInfo,
                                         java.lang.String fileId)

getBytes

public byte[] getBytes()
                throws java.io.IOException
Throws:
java.io.IOException