|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.db.AbstractTuple
org.xerial.db.TupleImpl
public class TupleImpl
A simple implementation of the Tuple interface
| Constructor Summary | |
|---|---|
TupleImpl(Relation relation,
String[] value)
|
|
| Method Summary | |
|---|---|
int |
getByteSize()
Gets the byte size of this tuple |
Object |
getValue(int relationIndex)
Gets the column value |
int |
load(BufferReader reader)
Loads the tuple from the buffer |
int |
save(BufferWriter writer)
Saves the tuple to the buffer |
void |
setValue(int relationIndex,
Object value)
Sets the tuple value of the specified column |
| Methods inherited from class org.xerial.db.AbstractTuple |
|---|
getRelation, getValue, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TupleImpl(Relation relation,
String[] value)
| Method Detail |
|---|
public Object getValue(int relationIndex)
Tuple
getValue in interface TuplegetValue in class AbstractTuplerelationIndex - the column index from which the value is read
public void setValue(int relationIndex,
Object value)
Tuple
setValue in interface TuplesetValue in class AbstractTuplerelationIndex - the column index to which the value is setvalue - the column value to setpublic int getByteSize()
Tuple
public int load(BufferReader reader)
Tuple
reader - the BufferReader
public int save(BufferWriter writer)
Tuple
writer - the BufferWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
