|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.client.Row
public class Row
Row is Value Object which represents Table's row.
A Row object has multiple columns.
Each column has multiple Cell Objects
| Nested Class Summary | |
|---|---|
static class |
Row.Key
Row.Key class |
| Constructor Summary | |
|---|---|
Row()
|
|
Row(Row.Key key)
|
|
| Method Summary | |
|---|---|
void |
addCell(java.lang.String columnName,
Cell newCell)
Add Cell to specified column |
void |
addCellList(java.lang.String columnName,
java.util.List<Cell> paramCells)
Add Cell list to specified column |
void |
addCells(java.lang.String columnName,
java.util.List<Cell> paramCells)
Deprecated. Use addCellList() |
int |
compareTo(Row row)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Map<java.lang.String,java.util.TreeMap<Cell.Key,Cell>> |
getAllCells()
|
Cell |
getCell(java.lang.String columnName,
Cell.Key cellKey)
Return Cell object. |
java.util.List<Cell> |
getCellList(java.lang.String columnName)
Return cell list |
java.util.TreeMap<Cell.Key,Cell> |
getCellMap(java.lang.String columnName)
Return Map of Cells |
java.util.TreeMap<Cell.Key,Cell> |
getCellMaps(java.lang.String columnName)
Deprecated. Use getCellMap() |
java.util.List<Cell> |
getCells(java.lang.String columnName)
Deprecated. Use getCellList() |
int |
getColumnCount()
return number of columns(NTable.get() or scan) |
java.lang.String[] |
getColumnNames()
|
int |
getColumnSize()
Deprecated. Use getColumnCount() |
Cell |
getFirst(java.lang.String columnName)
Return first Cell object in specified column |
java.util.List<Cell> |
getFirstColumnCellList()
Return Cell list This method must be used when called NTable.get() or scan with single column. |
java.util.List<Cell> |
getFirstColumnCells()
Deprecated. Use getFirstColumnCellList() |
Row.Key |
getKey()
Return Row.Key |
int |
getMaxNumCellValue()
Return max number of Cell.Value |
Cell |
getOne(java.lang.String columnName)
Deprecated. use getFirst() |
void |
print(java.lang.String columnName)
|
void |
readFields(java.io.DataInput in)
Reads the fields of this object from in. |
void |
setAllCells(java.util.Map<java.lang.String,java.util.TreeMap<Cell.Key,Cell>> cells)
|
void |
setKey(Row.Key key)
|
void |
write(java.io.DataOutput out)
Writes the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Row()
public Row(Row.Key key)
| Method Detail |
|---|
public int getColumnSize()
public int getColumnCount()
public Row.Key getKey()
public void addCell(java.lang.String columnName,
Cell newCell)
columnName - newCell -
public void addCells(java.lang.String columnName,
java.util.List<Cell> paramCells)
public void addCellList(java.lang.String columnName,
java.util.List<Cell> paramCells)
columnName - paramCells - public java.util.List<Cell> getCells(java.lang.String columnName)
columnName -
public Cell getCell(java.lang.String columnName,
Cell.Key cellKey)
columnName - cellKey -
public java.util.List<Cell> getCellList(java.lang.String columnName)
columnName -
public java.util.TreeMap<Cell.Key,Cell> getCellMaps(java.lang.String columnName)
columnName -
public java.util.TreeMap<Cell.Key,Cell> getCellMap(java.lang.String columnName)
columnName -
public Cell getOne(java.lang.String columnName)
columnName -
public Cell getFirst(java.lang.String columnName)
columnName -
public java.util.List<Cell> getFirstColumnCells()
throws java.io.IOException
java.io.IOException
public java.util.List<Cell> getFirstColumnCellList()
throws java.io.IOException
java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
com.nhncorp.neptune.common.io.NWritablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface com.nhncorp.neptune.common.io.NWritablereadFields in interface org.apache.hadoop.io.Writablejava.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
com.nhncorp.neptune.common.io.NWritableout.
write in interface com.nhncorp.neptune.common.io.NWritablewrite in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic int compareTo(Row row)
compareTo in interface java.lang.Comparable<Row>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.util.Map<java.lang.String,java.util.TreeMap<Cell.Key,Cell>> getAllCells()
public void setAllCells(java.util.Map<java.lang.String,java.util.TreeMap<Cell.Key,Cell>> cells)
public void setKey(Row.Key key)
public java.lang.String[] getColumnNames()
public void print(java.lang.String columnName)
public int getMaxNumCellValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||