|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.client.Cell
public class Cell
Neptune stores multiple values in a point of Row-Column.
Cell is Value Object which is stored that point. Cell is identified by Cell.Key in a Row.
A Cell has also multiple Cell.Value objects. Cell.Value is identified by timestamp.
| Nested Class Summary | |
|---|---|
static class |
Cell.Key
Cell.Key class |
static class |
Cell.Value
Cell내에 저장되어 있는 실제 값. |
| Constructor Summary | |
|---|---|
Cell()
|
|
Cell(Cell.Key key)
|
|
Cell(Cell.Key key,
byte[] bytes)
|
|
Cell(Cell.Key key,
byte[] bytes,
long timestamp)
|
|
| Method Summary | |
|---|---|
void |
addValue(Cell.Value value)
Add Cell.Value |
int |
compareTo(Cell o)
|
boolean |
equals(java.lang.Object obj)
|
byte[] |
getBytes()
Return latest Cell.Value's bytes array |
Cell.Key |
getKey()
|
java.lang.String |
getPrintValue()
|
java.lang.String |
getPrintValue(java.lang.String encoding)
|
Cell.Value |
getValue()
Return latest Cell.Value |
Cell.Value |
getValue(int index)
Return Cell.Value Cell.Value is sorted by timestamp descending |
java.lang.String |
getValueAsString()
Return (latest Cell.Value's bytes array).toString() |
java.util.List<Cell.Value> |
getValues()
|
int |
getValueSize()
Return number of Cell.Value This value is not number of version in a Table, but number of Value which is matched with search condition. |
void |
readFields(java.io.DataInput in)
Reads the fields of this object from in. |
void |
setKey(Cell.Key key)
|
void |
setValues(java.util.List<Cell.Value> values)
|
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 Cell()
public Cell(Cell.Key key)
public Cell(Cell.Key key,
byte[] bytes)
public Cell(Cell.Key key,
byte[] bytes,
long timestamp)
| Method Detail |
|---|
public void addValue(Cell.Value value)
value - public Cell.Key getKey()
public void setKey(Cell.Key key)
public byte[] getBytes()
public java.lang.String getValueAsString()
public Cell.Value getValue()
public Cell.Value getValue(int index)
index -
public int getValueSize()
public java.util.List<Cell.Value> getValues()
public void setValues(java.util.List<Cell.Value> values)
public java.lang.String getPrintValue(java.lang.String encoding)
public java.lang.String getPrintValue()
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(Cell o)
compareTo in interface java.lang.Comparable<Cell>public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||