Package org.h2.result
Class RowFactory
- java.lang.Object
-
- org.h2.result.RowFactory
-
- Direct Known Subclasses:
RowFactory.DefaultRowFactory
public abstract class RowFactory extends java.lang.ObjectCreates rows.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowFactory.DefaultRowFactoryDefault implementation of row factory.private static classRowFactory.Holder
-
Constructor Summary
Constructors Constructor Description RowFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SearchRowcreateRow()Create new row.abstract RowcreateRow(Value[] data, int memory)Create a new row.RowFactorycreateRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)Create a new row factory.abstract intgetColumnCount()abstract TypeInfo[]getColumnTypes()static RowFactory.DefaultRowFactorygetDefaultRowFactory()abstract int[]getIndexes()abstract RowDataTypegetRowDataType()static RowFactorygetRowFactory()abstract booleangetStoreKeys()
-
-
-
Method Detail
-
getDefaultRowFactory
public static RowFactory.DefaultRowFactory getDefaultRowFactory()
-
getRowFactory
public static RowFactory getRowFactory()
-
createRowFactory
public RowFactory createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
Create a new row factory.- 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
-
createRow
public abstract Row createRow(Value[] data, int memory)
Create a new row.- Parameters:
data- the valuesmemory- the estimated memory usage in bytes- Returns:
- the created row
-
createRow
public abstract SearchRow createRow()
Create new row.- Returns:
- the created row
-
getRowDataType
public abstract RowDataType getRowDataType()
-
getIndexes
public abstract int[] getIndexes()
-
getColumnTypes
public abstract TypeInfo[] getColumnTypes()
-
getColumnCount
public abstract int getColumnCount()
-
getStoreKeys
public abstract boolean getStoreKeys()
-
-