com.nhncorp.neptune.tablet
Class RowColumnValues
java.lang.Object
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:
- 김형준
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RowColumnValues
public RowColumnValues()
RowColumnValues
public RowColumnValues(java.lang.String columnName,
Row.Key rowKey,
ColumnValue[] columnValues)
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