com.nhncorp.neptune.client
Class ScanCell
java.lang.Object
com.nhncorp.neptune.client.ScanCell
- All Implemented Interfaces:
- NWritable, java.lang.Comparable<ScanCell>, org.apache.hadoop.io.Writable
public class ScanCell
- extends java.lang.Object
- implements NWritable, org.apache.hadoop.io.Writable, java.lang.Comparable<ScanCell>
테이블의 데이터를 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:
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(ScanCell obj)
- Specified by:
compareTo in interface java.lang.Comparable<ScanCell>
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)