Top Description Fields Constructors Methods
org.h2.result

public Class SimpleRowValue

extends SearchRow
Class Inheritance
Imports
org.h2.engine.Constants, org.h2.value.Value, .ValueBigint, .ValueNull

A simple row that contains data for only one column.

Field Summary

Modifier and TypeField and Description
private Value
private int
private final int
Inherited from org.h2.result.SearchRow:
keyMATCH_ALL_ROW_KEYMEMORY_CALCULATEROWID_INDEX

Constructor Summary

AccessConstructor and Description
public
SimpleRowValue(int columnCount)

public
SimpleRowValue(int columnCount, int index)

Method Summary

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

Implements abstract org.h2.result.SearchRow.copyFrom.

Copy all relevant values from the source to this row.

public int
getColumnCount()

Implements abstract org.h2.result.SearchRow.getColumnCount.

Get the column count.

public int
getMemory()

Implements abstract org.h2.result.SearchRow.getMemory.

Get the estimated memory used for this row, in bytes.

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

Implements abstract org.h2.result.SearchRow.getValue.

Get the value for the column

public boolean
isNull(int
column index
index
)

Overrides org.h2.result.SearchRow.isNull.

Determine if specified column contains NULL

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

Implements abstract org.h2.result.SearchRow.setValue.

Set the value for given column

public String
toString()

Overrides org.h2.value.Value.toString.

Returns a string representation of the object.

Inherited from org.h2.result.SearchRow:
compareTypeSafeequalsgetKeygetSQLgetStringgetTypegetValueTypehashCodesetKey

Field Detail

databack to summary
private Value data
indexback to summary
private int index
virtualColumnCountback to summary
private final int virtualColumnCount

Constructor Detail

SimpleRowValueback to summary
public SimpleRowValue(int columnCount)
SimpleRowValueback to summary
public SimpleRowValue(int columnCount, int index)

Method Detail

copyFromback to summary
public void copyFrom(SearchRow source)

Implements abstract org.h2.result.SearchRow.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()

Implements abstract org.h2.result.SearchRow.getColumnCount.

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

Get the column count.

Returns:int

the column count

Annotations
@Override
getMemoryback to summary
public int getMemory()

Implements abstract org.h2.result.SearchRow.getMemory.

Doc from org.h2.result.SearchRow.getMemory.

Get the estimated memory used for this row, in bytes.

Returns:int

the memory

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

Implements abstract org.h2.result.SearchRow.getValue.

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

Get the value for the column

Parameters
idx:int

the column number (starting with 0)

Returns:Value

the value

Annotations
@Override
isNullback to summary
public boolean isNull(int index)

Overrides org.h2.result.SearchRow.isNull.

Doc from org.h2.result.SearchRow.isNull.

Determine if specified column contains NULL

Parameters
index:int

column index

Returns:boolean

true if NULL

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

Implements abstract org.h2.result.SearchRow.setValue.

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

Set the value for given column

Parameters
idx:int

the column number (starting with 0)

v:Value

the new value

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.h2.value.Value.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override