|
||||||||||
| 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
Neptune에 저장되는 하나의 Row를 나타낸다. Column은 테이블 스키마의 Column을 의미하며 저장된 값은 Cell로 표현된다.
| Nested Class Summary | |
|---|---|
static class |
Row.Key
Row의 Key를 저장하는 클래스 |
| Constructor Summary | |
|---|---|
Row()
NWritable을 위해 필요한 기본 생성자. |
|
Row(Row.Key key)
|
|
| Method Summary | |
|---|---|
void |
addCell(java.lang.String columnName,
Cell cell)
특정 Column에 Cell(값)을 추가한다. |
void |
addCells(java.lang.String columnName,
java.util.List<Cell> paramCells)
특정 Column에 Cell의 목록을 추가한다. |
int |
compareTo(Row row)
|
java.util.Map<java.lang.String,java.util.List<Cell>> |
getAllCells()
|
java.util.List<Cell> |
getCells(java.lang.String columnName)
조회된 값에서 특정 Column의 Cell 목록을 가져온다. |
java.lang.String[] |
getColumnNames()
|
int |
getColumnSize()
NTable의 get 연산 또는 Scanner에 의해 전달된 값에서 Column 갯수 |
java.util.List<Cell> |
getFirstColumnCells()
get, scanner에서 Column 하나만 이용하여 조회한 경우 Cell 값을 가져 온다. |
Row.Key |
getKey()
Row의 key를 반환한다. |
Cell |
getOne(java.lang.String columnName)
특정 Column의 첫번째 값을 가져온다. |
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.List<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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Row()
public Row(Row.Key key)
| Method Detail |
|---|
public int getColumnSize()
public Row.Key getKey()
public void addCell(java.lang.String columnName,
Cell cell)
columnName - cell -
public void addCells(java.lang.String columnName,
java.util.List<Cell> paramCells)
columnName - paramCells - public java.util.List<Cell> getCells(java.lang.String columnName)
columnName -
public Cell getOne(java.lang.String columnName)
columnName -
public java.util.List<Cell> getFirstColumnCells()
throws java.io.IOException
java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
NWritablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface NWritablereadFields in interface org.apache.hadoop.io.Writablejava.io.IOException
public void write(java.io.DataOutput out)
throws java.io.IOException
NWritableout.
write in interface NWritablewrite in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic int compareTo(Row row)
compareTo in interface java.lang.Comparable<Row>public java.util.Map<java.lang.String,java.util.List<Cell>> getAllCells()
public void setAllCells(java.util.Map<java.lang.String,java.util.List<Cell>> cells)
public void setKey(Row.Key key)
public java.lang.String[] getColumnNames()
public void print(java.lang.String columnName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||