com.nhncorp.neptune.tablet
Class RowColumnValues

java.lang.Object
  extended by com.nhncorp.neptune.tablet.RowColumnValues
All Implemented Interfaces:
NWritable, java.lang.Comparable<RowColumnValues>, org.apache.hadoop.io.Writable

public class RowColumnValues
extends java.lang.Object
implements NWritable, java.lang.Comparable<RowColumnValues>, org.apache.hadoop.io.Writable

특정 row의 특정 column에 저장되어 있는 모든 값을 가진다(ValueObject).

Author:
김형준

Constructor Summary
RowColumnValues()
           
RowColumnValues(java.lang.String columnName, Row.Key rowKey, ColumnValue[] columnValues)
           
 
Method Summary
 int compareTo(RowColumnValues rowColumnValues)
           
 java.lang.String getColumnName()
           
 ColumnValue[] getColumnRecords()
           
 Row.Key getRowKey()
           
 void print()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setColumnName(java.lang.String columnName)
           
 void setColumnRecords(ColumnValue[] columnValues)
           
 void setRowKey(Row.Key rowKey)
           
 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowColumnValues

public RowColumnValues()

RowColumnValues

public RowColumnValues(java.lang.String columnName,
                       Row.Key rowKey,
                       ColumnValue[] columnValues)
Method Detail

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
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

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
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

getColumnName

public java.lang.String getColumnName()

getRowKey

public Row.Key getRowKey()

getColumnRecords

public ColumnValue[] getColumnRecords()

setColumnRecords

public void setColumnRecords(ColumnValue[] columnValues)

setColumnName

public void setColumnName(java.lang.String columnName)

setRowKey

public void setRowKey(Row.Key rowKey)

compareTo

public int compareTo(RowColumnValues rowColumnValues)
Specified by:
compareTo in interface java.lang.Comparable<RowColumnValues>

print

public void print()

toString

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