Class RowFactory.DefaultRowFactory
java.lang.Object
org.h2.result.RowFactory
org.h2.result.RowFactory.DefaultRowFactory
- Enclosing class:
RowFactory
Default implementation of row factory.
-
Nested Class Summary
Nested classes/interfaces inherited from class RowFactory
RowFactory.DefaultRowFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate TypeInfo[]private final RowDataTypeprivate final int[]static final RowFactory.DefaultRowFactoryprivate final int[] -
Constructor Summary
ConstructorsModifierConstructorDescription(package private)privateDefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes) -
Method Summary
Modifier and TypeMethodDescriptionCreate new row.Create a new row.createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, int[] sortTypes, int[] indexes, TypeInfo[] columnTypes, int columnCount, boolean storeKeys) Create a new row factory.createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys) Create a new row factory.intTypeInfo[]int[]booleanMethods inherited from class RowFactory
getDefaultRowFactory, getRowFactory
-
Field Details
-
dataType
-
columnCount
private final int columnCount -
indexes
private final int[] indexes -
columnTypes
-
map
private final int[] map -
INSTANCE
-
-
Constructor Details
-
DefaultRowFactory
DefaultRowFactory() -
DefaultRowFactory
private DefaultRowFactory(RowDataType dataType, int columnCount, int[] indexes, TypeInfo[] columnTypes)
-
-
Method Details
-
createRowFactory
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys) Description copied from class:RowFactoryCreate a new row factory.- Overrides:
createRowFactoryin 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
Description copied from class:RowFactoryCreate a new row.- Specified by:
createRowin classRowFactory- Parameters:
data- the valuesmemory- the estimated memory usage in bytes- Returns:
- the created row
-
createRow
Description copied from class:RowFactoryCreate new row.- Specified by:
createRowin classRowFactory- Returns:
- the created row
-
getRowDataType
- Specified by:
getRowDataTypein classRowFactory
-
getIndexes
public int[] getIndexes()- Specified by:
getIndexesin classRowFactory
-
getColumnTypes
- Specified by:
getColumnTypesin classRowFactory
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin classRowFactory
-
getStoreKeys
public boolean getStoreKeys()- Specified by:
getStoreKeysin classRowFactory
-