com.nhncorp.neptune.client
Class Cell.Value

java.lang.Object
  extended by com.nhncorp.neptune.client.Cell.Value
All Implemented Interfaces:
com.nhncorp.neptune.common.io.NWritable, java.lang.Comparable<Cell.Value>, org.apache.hadoop.io.Writable
Enclosing class:
Cell

public static class Cell.Value
extends java.lang.Object
implements com.nhncorp.neptune.common.io.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)
           
Cell.Value(byte[] bytes, long timestamp, boolean deleted)
           
 
Method Summary
 int compareTo(Cell.Value o)
           
 void copyToColumnValue(com.nhncorp.neptune.tablet.ColumnValue columnValue)
           
 boolean equals(Cell.Value obj)
           
 byte[] getBytes()
           
 int getNumOfValues()
           
 long getTimestamp()
           
 int getValueAsInt()
           
 long getValueAsLong()
           
 java.lang.String getValueAsString()
           
 int hashCode()
           
 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)
           
 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, notify, notifyAll, 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)

Cell.Value

public Cell.Value(byte[] bytes,
                  long timestamp,
                  boolean deleted)
Method Detail

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Description copied from interface: com.nhncorp.neptune.common.io.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 com.nhncorp.neptune.common.io.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: com.nhncorp.neptune.common.io.NWritable
Writes the fields of this object to out.

Specified by:
write in interface com.nhncorp.neptune.common.io.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>

equals

public boolean equals(Cell.Value obj)

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(com.nhncorp.neptune.tablet.ColumnValue columnValue)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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