Top Description Fields Constructors Methods
org.h2.result

public abstract Class Row

extends SearchRow
Class Inheritance
Known Direct Subclasses
org.h2.result.DefaultRow
Imports
java.util.Arrays, org.h2.value.Value

Represents a row in a table.

Field Summary

Inherited from org.h2.result.SearchRow:
keyMATCH_ALL_ROW_KEYMEMORY_CALCULATEROWID_INDEX

Constructor Summary

AccessConstructor and Description
public
Row()

Method Summary

Modifier and TypeMethod and Description
public static Row

Returns:

the allocated row
get
(Value[]
values of columns, or null
data
,
int
used memory
memory
)

Creates a new row.

public static Row

Returns:

the allocated row
get
(Value[]
values of columns, or null
data
,
int
used memory
memory
,
long
the key
key
)

Creates a new row with the specified key.

public abstract Value[]

Returns:

values
getValueList
()

Get values.

public boolean

Returns:

true if values are equal, false otherwise
hasSameValues
(Row
the other row
other
)

Check whether values of this row are equal to values of other row.

public boolean

Returns:

true if rows share the same underlying data, false otherwise or when unknown
hasSharedData
(Row
the other row
other
)

Check whether this row and the specified row share the same underlying data with values.

Inherited from org.h2.result.SearchRow:
compareTypeSafecopyFromequalsgetColumnCountgetKeygetMemorygetSQLgetStringgetTypegetValuegetValueTypehashCodeisNullsetKeysetValue

Constructor Detail

Rowback to summary
public Row()

Method Detail

getback to summary
public static Row get(Value[] data, int memory)

Creates a new row.

Parameters
data:Value[]

values of columns, or null

memory:int

used memory

Returns:Row

the allocated row

getback to summary
public static Row get(Value[] data, int memory, long key)

Creates a new row with the specified key.

Parameters
data:Value[]

values of columns, or null

memory:int

used memory

key:long

the key

Returns:Row

the allocated row

getValueListback to summary
public abstract Value[] getValueList()

Get values.

Returns:Value[]

values

hasSameValuesback to summary
public boolean hasSameValues(Row other)

Check whether values of this row are equal to values of other row.

Parameters
other:Row

the other row

Returns:boolean

true if values are equal, false otherwise

hasSharedDataback to summary
public boolean hasSharedData(Row other)

Check whether this row and the specified row share the same underlying data with values. This method must return false when values are not equal and may return either true or false when they are equal. This method may be used only for optimizations and should not perform any slow checks, such as equality checks for all pairs of values.

Parameters
other:Row

the other row

Returns:boolean

true if rows share the same underlying data, false otherwise or when unknown