com.nhncorp.neptune.client
Class Cell.Value
java.lang.Object
com.nhncorp.neptune.client.Cell.Value
- All Implemented Interfaces:
- NWritable, java.lang.Comparable<Cell.Value>, org.apache.hadoop.io.Writable
- Enclosing class:
- Cell
public static class Cell.Value
- extends java.lang.Object
- implements NWritable, org.apache.hadoop.io.Writable, java.lang.Comparable<Cell.Value>
Cell내에 저장되어 있는 실제 값.
- Author:
- nhn
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cell.Value
public Cell.Value()
Cell.Value
public Cell.Value(byte[] bytes)
Cell.Value
public Cell.Value(byte[] bytes,
long timestamp)
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
compareTo
public int compareTo(Cell.Value o)
- Specified by:
compareTo in interface java.lang.Comparable<Cell.Value>
getTimestamp
public long getTimestamp()
setTimestamp
public void setTimestamp(long timestamp)
getNumOfValues
public int getNumOfValues()
setNumOfValues
public void setNumOfValues(int numOfValues)
getValueAsLong
public long getValueAsLong()
getValueAsString
public java.lang.String getValueAsString()
getValueAsInt
public int getValueAsInt()
getBytes
public byte[] getBytes()
isDeleted
public boolean isDeleted()
setBytes
public void setBytes(byte[] bytes)
setDeleted
public void setDeleted(boolean deleted)
copyToColumnValue
public void copyToColumnValue(ColumnValue columnValue)