Class DefaultSplitColumn

  • All Implemented Interfaces:
    SplitColumn

    public class DefaultSplitColumn
    extends Object
    implements SplitColumn
    Sometimes the amount of data exceeds buffers. In these cases we need to split the data by some given range, usually the primary key. I.e., the data is read in chunks where these chunks are split using the ID column range of values.

    By default use the first primary key column, if any. Otherwise returns the first column with a numeric type. Otherwise return the first column.

    © 2012-2034 akquinet tech@spree

    Author:
    M. Dahm
    • Constructor Detail

      • DefaultSplitColumn

        public DefaultSplitColumn()
    • Method Detail

      • getSplitColumn

        public ColumnMetaData getSplitColumn​(TableMetaData table)
        Specified by:
        getSplitColumn in interface SplitColumn
        Returns:
        column of the table, i.e. in general the primary key or any other column name if no primary key column is appropriate