|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.result.Row
public class Row
Represents a row in a table.
Field Summary | |
---|---|
static Row[] |
EMPTY_ARRAY
|
static int |
MEMORY_CALCULATE
|
Constructor Summary | |
---|---|
Row(Value[] data,
int memory)
|
Method Summary | |
---|---|
void |
commit()
This record has been committed. |
int |
getByteCount(Data dummy)
Get the number of bytes required for the data. |
int |
getColumnCount()
Get the column count. |
long |
getKey()
Get the unique key of the row. |
int |
getMemory()
Get the estimated memory used for this row, in bytes. |
int |
getSessionId()
|
Value |
getValue(int i)
Get the value for the column |
int |
getVersion()
Get the version of the row. |
boolean |
isDeleted()
|
boolean |
isEmpty()
|
void |
setDeleted(boolean deleted)
|
void |
setKey(long key)
Set the unique key of the row. |
void |
setKeyAndVersion(SearchRow row)
Set the position and version to match another row. |
void |
setSessionId(int sessionId)
|
void |
setValue(int i,
Value v)
Set the value for given column |
void |
setVersion(int version)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MEMORY_CALCULATE
public static final Row[] EMPTY_ARRAY
Constructor Detail |
---|
public Row(Value[] data, int memory)
Method Detail |
---|
public void setKeyAndVersion(SearchRow row)
SearchRow
setKeyAndVersion
in interface SearchRow
row
- the other row.public int getVersion()
SearchRow
getVersion
in interface SearchRow
public void setVersion(int version)
public long getKey()
SearchRow
getKey
in interface SearchRow
public void setKey(long key)
SearchRow
setKey
in interface SearchRow
key
- the keypublic Value getValue(int i)
SearchRow
getValue
in interface SearchRow
i
- the column number (starting with 0)
public int getByteCount(Data dummy)
dummy
- the template buffer
public void setValue(int i, Value v)
SearchRow
setValue
in interface SearchRow
i
- the column number (starting with 0)v
- the new valuepublic boolean isEmpty()
public int getColumnCount()
SearchRow
getColumnCount
in interface SearchRow
public int getMemory()
SearchRow
getMemory
in interface SearchRow
public java.lang.String toString()
toString
in class java.lang.Object
public void setDeleted(boolean deleted)
public void setSessionId(int sessionId)
public int getSessionId()
public void commit()
public boolean isDeleted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |