Class ColumnStatsTableConfig

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
com.kingsrook.qqq.backend.core.processes.implementations.columnstats.ColumnStatsTableConfig
All Implemented Interfaces:
Serializable, Cloneable

public class ColumnStatsTableConfig extends QSupplementalTableMetaData implements Serializable
Object with properties to allow configuring behavior of the ColumnStats process.

Can be deployed various ways:

  • As supplementalTableMetaData (e.g., set on individual tables in QInstance)
     ColumnStatsTableConfig.ofOrWithNew(myTableMetaData).withFailIfCountOverLimit(47)
           
  • As a value in the process, named "ColumnStatsTableConfig":
    • Where one can set a default value for the process (e.g., across all tables) as in:
       processMetaData.getInputField("ColumnStatsTableConfig").ifPresent(f ->
          f.setDefaultValue(new ColumnStatsTableConfig().withFailIfCountOverLimit(42)));
             
    • Or an application can insert a custom step into this process to dynamically build the config when the process runs
       processMetaData.withStep(0, new QBackendStepMetaData()
          .withName("setConfig")
          .withCode(new QCodeReference(ColumnStatusConfigBuilderStep.class)));
             
      and then in that step:
       runBackendStepOutput.addValue("ColumnStatsTableConfig", new ColumnStatsTableConfig());
             
See Also: