com.nhncorp.neptune.tabletserver
Class ChangeLog
java.lang.Object
com.nhncorp.neptune.tabletserver.ChangeLog
- All Implemented Interfaces:
- NWritable
public class ChangeLog
- extends java.lang.Object
- implements NWritable
|
Constructor Summary |
ChangeLog()
|
ChangeLog(int operation,
java.lang.String tableName,
Row.Key rowKey,
java.lang.String columnName,
Cell.Key columnKey,
long timestamp,
byte[] value)
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
USE_SERVER_TIMESTAMP
public static final long USE_SERVER_TIMESTAMP
- See Also:
- Constant Field Values
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()
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