Top Description Inners Constructors Methods
org.h2.result

public abstract Class RowFactory

extends Object
Class Inheritance
Known Direct Subclasses
org.h2.result.RowFactory.DefaultRowFactory
Imports
org.h2.engine.CastDataProvider, org.h2.mvstore.db.RowDataType, org.h2.store.DataHandler, org.h2.table.IndexColumn, org.h2.value.CompareMode, .TypeInfo, .Typed, .Value

Creates rows.
Authors
Sergi Vladykin, Andrei Tokar

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
RowFactory.DefaultRowFactory

Default implementation of row factory.

private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Row

Returns:

the created row
createRow
(Value[]
the values
data
,
int
the estimated memory usage in bytes
memory
)

Create a new row.

public abstract SearchRow

Returns:

the created row
createRow
()

Create new row.

public RowFactory

Returns:

the (possibly new) row factory
createRowFactory
(CastDataProvider
the cast provider
provider
,
CompareMode
the compare mode
compareMode
,
DataHandler
the data handler
handler
,
Typed[]
the list of columns
columns
,
IndexColumn[]
the list of index columns
indexColumns
,
boolean
whether row keys are stored
storeKeys
)

Create a new row factory.

public abstract int
public abstract TypeInfo[]
public static RowFactory.DefaultRowFactory
public abstract int[]
public abstract RowDataType
public static RowFactory
public abstract boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RowFactoryback to summary
public RowFactory()

Method Detail

createRowback to summary
public abstract Row createRow(Value[] data, int memory)

Create a new row.

Parameters
data:Value[]

the values

memory:int

the estimated memory usage in bytes

Returns:Row

the created row

createRowback to summary
public abstract SearchRow createRow()

Create new row.

Returns:SearchRow

the created row

createRowFactoryback to summary
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)

Create a new row factory.

Parameters
provider:CastDataProvider

the cast provider

compareMode:CompareMode

the compare mode

handler:DataHandler

the data handler

columns:Typed[]

the list of columns

indexColumns:IndexColumn[]

the list of index columns

storeKeys:boolean

whether row keys are stored

Returns:RowFactory

the (possibly new) row factory

getColumnCountback to summary
public abstract int getColumnCount()
getColumnTypesback to summary
public abstract TypeInfo[] getColumnTypes()
getDefaultRowFactoryback to summary
public static RowFactory.DefaultRowFactory getDefaultRowFactory()
getIndexesback to summary
public abstract int[] getIndexes()
getRowDataTypeback to summary
public abstract RowDataType getRowDataType()
getRowFactoryback to summary
public static RowFactory getRowFactory()
getStoreKeysback to summary
public abstract boolean getStoreKeys()
org.h2.result back to summary

public final Class RowFactory.DefaultRowFactory

extends RowFactory
Class Inheritance

Default implementation of row factory.

Field Summary

Modifier and TypeField and Description
private final int
private TypeInfo[]
private final RowDataType
private final int[]
public static final RowFactory.DefaultRowFactory
private final int[]

Constructor Summary

AccessConstructor and Description
pack-priv
private
DefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes)

Method Summary

Modifier and TypeMethod and Description
public Row
createRow(Value[]
the values
data
,
int
the estimated memory usage in bytes
memory
)

Implements abstract org.h2.result.RowFactory.createRow.

Create a new row.

public SearchRow
createRow()

Implements abstract org.h2.result.RowFactory.createRow.

Create new row.

public RowFactory
createRowFactory(CastDataProvider
the cast provider
provider
,
CompareMode
the compare mode
compareMode
,
DataHandler
the data handler
handler
,
Typed[]
the list of columns
columns
,
IndexColumn[]
the list of index columns
indexColumns
,
boolean
whether row keys are stored
storeKeys
)

Overrides org.h2.result.RowFactory.createRowFactory.

Create a new row factory.

public RowFactory

Returns:

the (possibly new) row factory
createRowFactory
(CastDataProvider
the cast provider
provider
,
CompareMode
the compare mode
compareMode
,
DataHandler
the data handler
handler
,
int[]
the sort types
sortTypes
,
int[]
the list of indexed columns
indexes
,
TypeInfo[]
the list of column data type information
columnTypes
,
int
the number of columns
columnCount
,
boolean
whether row keys are stored
storeKeys
)

Create a new row factory.

public int
public TypeInfo[]
public int[]
public RowDataType
public boolean
Inherited from org.h2.result.RowFactory:
getDefaultRowFactorygetRowFactory

Field Detail

columnCountback to summary
private final int columnCount
columnTypesback to summary
private TypeInfo[] columnTypes
dataTypeback to summary
private final RowDataType dataType
indexesback to summary
private final int[] indexes
INSTANCEback to summary
public static final RowFactory.DefaultRowFactory INSTANCE
mapback to summary
private final int[] map

Constructor Detail

DefaultRowFactoryback to summary
pack-priv DefaultRowFactory()
DefaultRowFactoryback to summary
private DefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes)

Method Detail

createRowback to summary
public Row createRow(Value[] data, int memory)

Implements abstract org.h2.result.RowFactory.createRow.

Doc from org.h2.result.RowFactory.createRow.

Create a new row.

Parameters
data:Value[]

the values

memory:int

the estimated memory usage in bytes

Returns:Row

the created row

Annotations
@Override
createRowback to summary
public SearchRow createRow()

Implements abstract org.h2.result.RowFactory.createRow.

Doc from org.h2.result.RowFactory.createRow.

Create new row.

Returns:SearchRow

the created row

Annotations
@Override
createRowFactoryback to summary
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)

Overrides org.h2.result.RowFactory.createRowFactory.

Doc from org.h2.result.RowFactory.createRowFactory.

Create a new row factory.

Parameters
provider:CastDataProvider

the cast provider

compareMode:CompareMode

the compare mode

handler:DataHandler

the data handler

columns:Typed[]

the list of columns

indexColumns:IndexColumn[]

the list of index columns

storeKeys:boolean

whether row keys are stored

Returns:RowFactory

the (possibly new) row factory

Annotations
@Override
createRowFactoryback to summary
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, TypeInfo[] columnTypes, int columnCount, boolean storeKeys)

Create a new row factory.

Parameters
provider:CastDataProvider

the cast provider

compareMode:CompareMode

the compare mode

handler:DataHandler

the data handler

sortTypes:int[]

the sort types

indexes:int[]

the list of indexed columns

columnTypes:TypeInfo[]

the list of column data type information

columnCount:int

the number of columns

storeKeys:boolean

whether row keys are stored

Returns:RowFactory

the (possibly new) row factory

getColumnCountback to summary
public int getColumnCount()

Implements abstract org.h2.result.RowFactory.getColumnCount.

Annotations
@Override
getColumnTypesback to summary
public TypeInfo[] getColumnTypes()

Implements abstract org.h2.result.RowFactory.getColumnTypes.

Annotations
@Override
getIndexesback to summary
public int[] getIndexes()

Implements abstract org.h2.result.RowFactory.getIndexes.

Annotations
@Override
getRowDataTypeback to summary
public RowDataType getRowDataType()

Implements abstract org.h2.result.RowFactory.getRowDataType.

Annotations
@Override
getStoreKeysback to summary
public boolean getStoreKeys()

Implements abstract org.h2.result.RowFactory.getStoreKeys.

Annotations
@Override
org.h2.result back to summary

private final Class RowFactory.Holder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final RowFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EFFECTIVEback to summary
pack-priv static final RowFactory EFFECTIVE

Constructor Detail

Holderback to summary
private Holder()