|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.result.Row
org.h2.result.RowImpl
public class RowImpl
Default row implementation.
| Field Summary |
|---|
| Fields inherited from class org.h2.result.Row |
|---|
EMPTY_ARRAY, MEMORY_CALCULATE |
| Constructor Summary | |
|---|---|
RowImpl(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. |
Row |
getCopy()
Get a copy of the row that is distinct from (not equal to) this row. |
long |
getKey()
Get the unique key of the row. |
int |
getMemory()
Get the estimated memory used for this row, in bytes. |
int |
getSessionId()
Get session id. |
Value |
getValue(int i)
Get the value for the column |
Value[] |
getValueList()
Get values. |
int |
getVersion()
Get the version of the row. |
boolean |
isDeleted()
Check if the row is deleted. |
boolean |
isEmpty()
Check if this is an empty row. |
void |
setDeleted(boolean deleted)
Mark the row as 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)
Set session id. |
void |
setValue(int i,
Value v)
Set the value for given column |
void |
setVersion(int version)
Set version. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RowImpl(Value[] data,
int memory)
| Method Detail |
|---|
public Row getCopy()
getCopy in class Rowpublic void setKeyAndVersion(SearchRow row)
SearchRow
row - the other row.public int getVersion()
SearchRow
public void setVersion(int version)
Row
setVersion in class Rowversion - row versionpublic long getKey()
SearchRow
public void setKey(long key)
SearchRow
key - the keypublic Value getValue(int i)
SearchRow
i - the column number (starting with 0)
public int getByteCount(Data dummy)
getByteCount in class Rowdummy - the template buffer
public void setValue(int i,
Value v)
SearchRow
i - the column number (starting with 0)v - the new valuepublic boolean isEmpty()
Row
isEmpty in class Rowtrue if the row is emptypublic int getColumnCount()
SearchRow
public int getMemory()
SearchRow
public java.lang.String toString()
toString in class java.lang.Objectpublic void setDeleted(boolean deleted)
Row
setDeleted in class Rowdeleted - deleted flagpublic void setSessionId(int sessionId)
Row
setSessionId in class RowsessionId - the session idpublic int getSessionId()
Row
getSessionId in class Rowpublic void commit()
commit in class Rowpublic boolean isDeleted()
Row
isDeleted in class Rowtrue if the row is deletedpublic Value[] getValueList()
Row
getValueList in class Row
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||