Package org.h2.result
Class RowFactory.DefaultRowFactory
- java.lang.Object
-
- org.h2.result.RowFactory
-
- org.h2.result.RowFactory.DefaultRowFactory
-
- Enclosing class:
- RowFactory
public static final class RowFactory.DefaultRowFactory extends RowFactory
Default implementation of row factory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.h2.result.RowFactory
RowFactory.DefaultRowFactory
-
-
Field Summary
Fields Modifier and Type Field Description private int
columnCount
private TypeInfo[]
columnTypes
private RowDataType
dataType
private int[]
indexes
static RowFactory.DefaultRowFactory
INSTANCE
private int[]
map
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
DefaultRowFactory()
private
DefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchRow
createRow()
Create new row.Row
createRow(Value[] data, int memory)
Create a new row.RowFactory
createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, TypeInfo[] columnTypes, int columnCount, boolean storeKeys)
Create a new row factory.RowFactory
createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
Create a new row factory.int
getColumnCount()
TypeInfo[]
getColumnTypes()
int[]
getIndexes()
RowDataType
getRowDataType()
boolean
getStoreKeys()
-
Methods inherited from class org.h2.result.RowFactory
getDefaultRowFactory, getRowFactory
-
-
-
-
Field Detail
-
dataType
private final RowDataType dataType
-
columnCount
private final int columnCount
-
indexes
private final int[] indexes
-
columnTypes
private TypeInfo[] columnTypes
-
map
private final int[] map
-
INSTANCE
public static final RowFactory.DefaultRowFactory INSTANCE
-
-
Constructor Detail
-
DefaultRowFactory
DefaultRowFactory()
-
DefaultRowFactory
private DefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes)
-
-
Method Detail
-
createRowFactory
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
Description copied from class:RowFactory
Create a new row factory.- Overrides:
createRowFactory
in classRowFactory
- Parameters:
provider
- the cast providercompareMode
- the compare modehandler
- the data handlercolumns
- the list of columnsindexColumns
- the list of index columnsstoreKeys
- whether row keys are stored- Returns:
- the (possibly new) row factory
-
createRowFactory
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
- the cast providercompareMode
- the compare modehandler
- the data handlersortTypes
- the sort typesindexes
- the list of indexed columnscolumnTypes
- the list of column data type informationcolumnCount
- the number of columnsstoreKeys
- whether row keys are stored- Returns:
- the (possibly new) row factory
-
createRow
public Row createRow(Value[] data, int memory)
Description copied from class:RowFactory
Create a new row.- Specified by:
createRow
in classRowFactory
- Parameters:
data
- the valuesmemory
- the estimated memory usage in bytes- Returns:
- the created row
-
createRow
public SearchRow createRow()
Description copied from class:RowFactory
Create new row.- Specified by:
createRow
in classRowFactory
- Returns:
- the created row
-
getRowDataType
public RowDataType getRowDataType()
- Specified by:
getRowDataType
in classRowFactory
-
getIndexes
public int[] getIndexes()
- Specified by:
getIndexes
in classRowFactory
-
getColumnTypes
public TypeInfo[] getColumnTypes()
- Specified by:
getColumnTypes
in classRowFactory
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in classRowFactory
-
getStoreKeys
public boolean getStoreKeys()
- Specified by:
getStoreKeys
in classRowFactory
-
-