com.nhncorp.neptune.client
Class Cell.Value

java.lang.Object
  extended by 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

Constructor Summary
Cell.Value()
           
Cell.Value(byte[] bytes)
           
Cell.Value(byte[] bytes, long timestamp)
           
 
Method Summary
 int compareTo(Cell.Value o)
           
 void copyToColumnValue(ColumnValue columnValue)
           
 byte[] getBytes()
           
 int getNumOfValues()
           
 long getTimestamp()
           
 int getValueAsInt()
           
 long getValueAsLong()
           
 java.lang.String getValueAsString()
           
 boolean isDeleted()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setBytes(byte[] bytes)
           
 void setDeleted(boolean deleted)
           
 void setNumOfValues(int numOfValues)
           
 void setTimestamp(long timestamp)
           
 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, toString, wait, wait, wait
 

Constructor Detail

Cell.Value

public Cell.Value()

Cell.Value

public Cell.Value(byte[] bytes)

Cell.Value

public Cell.Value(byte[] bytes,
                  long timestamp)
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

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)