com.nhncorp.neptune.client
Class ScanCell
java.lang.Object
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScanCell
public ScanCell()
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)