com.nhncorp.neptune.client
Class ScanCell

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

public class ScanCell
extends java.lang.Object
implements com.nhncorp.neptune.common.io.NWritable, org.apache.hadoop.io.Writable, java.lang.Comparable<ScanCell>

Value Object which is returned by TableScanner


Constructor Summary
ScanCell()
           
 
Method Summary
static void addCells(Row row, java.lang.String columnName, java.util.List<ScanCell> scanCells)
           
 int compareTo(ScanCell obj)
           
 boolean equals(ScanCell obj)
           
 byte[] getBytes()
           
 Cell.Key getCellKey()
           
 Cell.Value getCellValue()
           
 java.lang.String getColumnName()
           
 java.lang.String getPrintValue()
           
 Row.Key getRowKey()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setCellKey(Cell.Key cellKey)
           
 void setCellValue(Cell.Value value)
           
 void setColumnName(java.lang.String columnName)
           
 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

ScanCell

public ScanCell()
Method Detail

getRowKey

public Row.Key getRowKey()

setRowKey

public void setRowKey(Row.Key rowKey)

getColumnName

public java.lang.String getColumnName()

setColumnName

public void setColumnName(java.lang.String columnName)

setCellKey

public void setCellKey(Cell.Key cellKey)

setCellValue

public void setCellValue(Cell.Value value)

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(ScanCell obj)
Specified by:
compareTo in interface java.lang.Comparable<ScanCell>

equals

public boolean equals(ScanCell obj)

getCellKey

public Cell.Key getCellKey()

getBytes

public byte[] getBytes()

getCellValue

public Cell.Value getCellValue()

getPrintValue

public java.lang.String getPrintValue()

toString

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

addCells

public static void addCells(Row row,
                            java.lang.String columnName,
                            java.util.List<ScanCell> scanCells)