Package org.h2.result

Class RowFactory.DefaultRowFactory

  • Enclosing class:
    RowFactory

    public static final class RowFactory.DefaultRowFactory
    extends RowFactory
    Default implementation of row factory.
    • Field Detail

      • columnCount

        private final int columnCount
      • indexes

        private final int[] indexes
      • columnTypes

        private TypeInfo[] columnTypes
      • map

        private final int[] map
    • 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 class RowFactory
        Parameters:
        provider - the cast provider
        compareMode - the compare mode
        handler - the data handler
        columns - the list of columns
        indexColumns - the list of index columns
        storeKeys - 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 provider
        compareMode - the compare mode
        handler - the data handler
        sortTypes - the sort types
        indexes - the list of indexed columns
        columnTypes - the list of column data type information
        columnCount - the number of columns
        storeKeys - 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 class RowFactory
        Parameters:
        data - the values
        memory - the estimated memory usage in bytes
        Returns:
        the created row