Package guru.mikelue.foxglove.jdbc
Interface ColumnSettingSteps.ColumnSimpleStep<T>
- Type Parameters:
T- The type of value generated for the column
- All Superinterfaces:
ColumnConfig<T,JdbcTableFacet.Builder>
- Enclosing interface:
ColumnSettingSteps
public static interface ColumnSettingSteps.ColumnSimpleStep<T>
extends ColumnConfig<T,JdbcTableFacet.Builder>
The step to configure column.
This interface supports same methods as ColumnConfig.
-
Method Summary
Modifier and TypeMethodDescriptionUses a fixed value for the column.forRow(RowIndexToValue<? extends T> rowIndexToValue) Uses a function that converts row index to value.from(JdbcTableFacet referencedTable, String referencedColumn) Configures the column to get values from another table's column.default JdbcTableFacet.BuilderroundRobin(List<? extends T> values) Generates data by round-robin of values.default JdbcTableFacet.BuilderroundRobin(Stream<? extends T> domain) Generates data by round-robin of values.roundRobin(T... values) Generates data by round-robin of values.Methods inherited from interface guru.mikelue.foxglove.setting.ColumnConfig
decideSupplier, useSpec, useSupplier
-
Method Details
-
forRow
Uses a function that converts row index to value.- Parameters:
rowIndexToValue- The function that converts row index to value- Returns:
- The builder for
JdbcTableFacet
-
fixed
Uses a fixed value for the column.- Parameters:
fixedValue- The fixed value- Returns:
- The builder for
JdbcTableFacet
-
from
Configures the column to get values from another table's column.This is differ from
JdbcTableFacet.Builder.referencing(String)in that the number of rows is not affected by this configuration.- Parameters:
referencedTable- The referenced table facetreferencedColumn- The column name of referenced in referenced table- Returns:
- The step to configure column from another table
-
roundRobin
Generates data by round-robin of values.- Parameters:
values- The values- Returns:
- The builder for
JdbcTableFacet - See Also:
-
roundRobin
Generates data by round-robin of values.- Parameters:
domain- The stream of values- Returns:
- The builder for
JdbcTableFacet - See Also:
-
roundRobin
Generates data by round-robin of values.- Parameters:
values- The list of values- Returns:
- The builder for
JdbcTableFacet - See Also:
-