com.nhncorp.neptune.tabletserver
Class MapFileIndexRecord

java.lang.Object
  extended by com.nhncorp.neptune.tabletserver.MapFileIndexRecord
All Implemented Interfaces:
java.lang.Comparable<MapFileIndexRecord>

public class MapFileIndexRecord
extends java.lang.Object
implements java.lang.Comparable<MapFileIndexRecord>


Constructor Summary
MapFileIndexRecord()
           
MapFileIndexRecord(Row.Key rowKey, Cell.Key cellKey)
          IndexRecord 비교 대상이 되는 객체 생성을 위한 클래스
MapFileIndexRecord(Row.Key rowKey, Cell.Key columnKey, long timestamp, long fileOffset)
           
MapFileIndexRecord(Row.Key rowKey, ColumnValue columnValue, long fileOffset)
           
 
Method Summary
 int compareTo(MapFileIndexRecord otherIndexRecord)
           
 int equalsBytes(byte[] bytes1, byte[] bytes2)
           
 Cell.Key getCellKey()
           
 long getMemorySize()
           
 long getOffset()
           
 Row.Key getRowKey()
           
 long getTimestamp()
           
 void read(java.io.DataInput in)
           
 void setValue(byte[] rowKey, byte[] cellKey, long timestamp, long offset)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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