|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.CacheObject
org.h2.store.Record
org.h2.result.Row
public class Row
Represents a row in a table.
Field Summary | |
---|---|
static int |
MEMORY_CALCULATE
|
Fields inherited from class org.h2.util.CacheObject |
---|
blockCount, cacheQueue, chained, next, previous |
Constructor Summary | |
---|---|
Row(Value[] data,
int memory)
|
Method Summary | |
---|---|
int |
getByteCount(DataPage dummy)
Get the number of bytes required for the data if the given data page would be used. |
int |
getColumnCount()
Get the column count. |
long |
getKey()
Get the unique key of the row. |
int |
getMemorySize()
Get the estimated memory size. |
Value |
getValue(int i)
Get the value for the column |
int |
getVersion()
Get the version of the row. |
boolean |
isEmpty()
Check if this record is empty. |
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 |
setPos(int pos)
|
void |
setValue(int i,
Value v)
Set the value for given column |
void |
setVersion(int version)
|
java.lang.String |
toString()
|
void |
write(DataPage buff)
Write the record to the data page. |
Methods inherited from class org.h2.store.Record |
---|
canRemove, commit, getSessionId, getStorageId, isDeleted, isLogWritten, prepareWrite, setDeleted, setLastLog, setLogWritten, setSessionId, setStorageId |
Methods inherited from class org.h2.util.CacheObject |
---|
getBlockCount, getPos, isChanged, isPinned, setBlockCount, setChanged, sort |
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
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 void setPos(int pos)
setPos
in class CacheObject
public Value getValue(int i)
SearchRow
getValue
in interface SearchRow
i
- the column number (starting with 0)
public void write(DataPage buff) throws java.sql.SQLException
Record
write
in class Record
buff
- the data page
java.sql.SQLException
public int getByteCount(DataPage dummy) throws java.sql.SQLException
Record
getByteCount
in class Record
dummy
- the template data page
java.sql.SQLException
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()
Record
isEmpty
in class Record
public int getColumnCount()
SearchRow
getColumnCount
in interface SearchRow
public int getMemorySize()
CacheObject
getMemorySize
in class CacheObject
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |