Top Description Fields Constructors Methods
org.h2.result

public final Class Sparse

extends DefaultRow
Class Inheritance
Imports
org.h2.value.Value, .ValueBigint

Class Sparse.
Author
Andrei Tokar

Field Summary

Modifier and TypeField and Description
private final int
private final int[]
Inherited from org.h2.result.DefaultRow:
dataMEMORY_CALCULATE

Constructor Summary

AccessConstructor and Description
pack-priv
Sparse(int columnCount, int capacity, int[] map)

Method Summary

Modifier and TypeMethod and Description
public void
copyFrom(SearchRow
source of column values
source
)

Overrides org.h2.result.DefaultRow.copyFrom.

Copy all relevant values from the source to this row.

public int
getColumnCount()

Overrides org.h2.result.DefaultRow.getColumnCount.

Get the column count.

public Value
getValue(int
the column number (starting with 0)
i
)

Overrides org.h2.result.DefaultRow.getValue.

Get the value for the column

public void
setValue(int
the column number (starting with 0)
i
,
Value
the new value
v
)

Overrides org.h2.result.DefaultRow.setValue.

Set the value for given column

Inherited from org.h2.result.DefaultRow:
calculateMemorygetMemorygetValueListhasSharedDatatoString

Field Detail

columnCountback to summary
private final int columnCount
mapback to summary
private final int[] map

Constructor Detail

Sparseback to summary
pack-priv Sparse(int columnCount, int capacity, int[] map)

Method Detail

copyFromback to summary
public void copyFrom(SearchRow source)

Overrides org.h2.result.DefaultRow.copyFrom.

Doc from org.h2.result.SearchRow.copyFrom.

Copy all relevant values from the source to this row.

Parameters
source:SearchRow

source of column values

Annotations
@Override
getColumnCountback to summary
public int getColumnCount()

Overrides org.h2.result.DefaultRow.getColumnCount.

Doc from org.h2.result.SearchRow.getColumnCount.

Get the column count.

Returns:int

the column count

Annotations
@Override
getValueback to summary
public Value getValue(int i)

Overrides org.h2.result.DefaultRow.getValue.

Doc from org.h2.result.SearchRow.getValue.

Get the value for the column

Parameters
i:int

the column number (starting with 0)

Returns:Value

the value

Annotations
@Override
setValueback to summary
public void setValue(int i, Value v)

Overrides org.h2.result.DefaultRow.setValue.

Doc from org.h2.result.SearchRow.setValue.

Set the value for given column

Parameters
i:int

the column number (starting with 0)

v:Value

the new value

Annotations
@Override