com.nhncorp.neptune.tabletserver
Class MapFileIndexRecord
java.lang.Object
com.nhncorp.neptune.tabletserver.MapFileIndexRecord
- All Implemented Interfaces:
- java.lang.Comparable<MapFileIndexRecord>
public class MapFileIndexRecord
- extends java.lang.Object
- implements java.lang.Comparable<MapFileIndexRecord>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapFileIndexRecord
public MapFileIndexRecord()
MapFileIndexRecord
public MapFileIndexRecord(Row.Key rowKey,
Cell.Key cellKey)
- IndexRecord 비교 대상이 되는 객체 생성을 위한 클래스
- Parameters:
endRowKey - columnKey -
MapFileIndexRecord
public MapFileIndexRecord(Row.Key rowKey,
Cell.Key columnKey,
long timestamp,
long fileOffset)
MapFileIndexRecord
public MapFileIndexRecord(Row.Key rowKey,
ColumnValue columnValue,
long fileOffset)
setValue
public void setValue(byte[] rowKey,
byte[] cellKey,
long timestamp,
long offset)
getOffset
public long getOffset()
getTimestamp
public long getTimestamp()
getRowKey
public Row.Key getRowKey()
getCellKey
public Cell.Key getCellKey()
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Throws:
java.io.IOException
read
public void read(java.io.DataInput in)
throws java.io.IOException
- Throws:
java.io.IOException
compareTo
public int compareTo(MapFileIndexRecord otherIndexRecord)
- Specified by:
compareTo in interface java.lang.Comparable<MapFileIndexRecord>
equalsBytes
public int equalsBytes(byte[] bytes1,
byte[] bytes2)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getMemorySize
public long getMemorySize()
throws java.io.IOException
- Throws:
java.io.IOException