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.Object
Creates rows.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RowFactory.DefaultRowFactory
Default implementation of row factory.private static class
RowFactory.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 SearchRow
createRow()
Create new row.abstract Row
createRow(Value[] data, int memory)
Create a new row.RowFactory
createRowFactory(CastDataProvider provider, CompareMode compareMode, DataHandler handler, Typed[] columns, IndexColumn[] indexColumns, boolean storeKeys)
Create a new row factory.abstract int
getColumnCount()
abstract TypeInfo[]
getColumnTypes()
static RowFactory.DefaultRowFactory
getDefaultRowFactory()
abstract int[]
getIndexes()
abstract RowDataType
getRowDataType()
static RowFactory
getRowFactory()
abstract boolean
getStoreKeys()
-
-
-
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()
-
-