-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull LoaderJSONOptionsStep<R>
fields(Collection<? extends Field<?>> fields)
Specify the fields to be loaded into the table in the correct order.@NotNull LoaderJSONOptionsStep<R>
fields(Field<?>... fields)
Specify the fields to be loaded into the table in the correct order.@NotNull LoaderJSONOptionsStep<R>
fields(LoaderFieldMapper mapper)
Specify a function to apply on each input field to receive the target table's field.@NotNull LoaderCSVOptionsStep<R>
fieldsCorresponding()
Indicate that all input fields which have a corresponding field in the target table (with the same name) should be loaded.@NotNull LoaderCSVOptionsStep<R>
fieldsFromSource()
Deprecated.- 3.14.0 - [#10010] - UsefieldsCorresponding()
instead.
-
-
-
Method Detail
-
fields
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(Field<?>... fields)
Specify the fields to be loaded into the table in the correct order.The JSON column at index
i
is inserted into the table field at indexi
. Iffields[i] == null
orfields.length <= i
, then the JSON column is skipped.
-
fields
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(Collection<? extends Field<?>> fields)
Specify the fields to be loaded into the table in the correct order.The JSON column at index
i
is inserted into the table field at indexi
. Ifnew ArrayList(fields).get(i) == null
ornew ArrayList(fields).size() <= i
, then the JSON column is skipped.
-
fields
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(LoaderFieldMapper mapper)
Specify a function to apply on each input field to receive the target table's field.The input field obtained from
LoaderFieldMapper.LoaderFieldContext.field()
wraps the JSON column name if any, or an unspecified field enumeration is used. TheLoaderFieldMapper.LoaderFieldContext.index()
property corresponds to the JSON column index in enumeration order.
-
fieldsFromSource
@Deprecated @NotNull @Support @NotNull LoaderCSVOptionsStep<R> fieldsFromSource()
Deprecated.- 3.14.0 - [#10010] - UsefieldsCorresponding()
instead.Indicate that all input fields which have a corresponding field in the target table (with the same name) should be loaded.- Throws:
LoaderConfigurationException
- When the source data does not expose field names.
-
fieldsCorresponding
@NotNull @Support @NotNull LoaderCSVOptionsStep<R> fieldsCorresponding()
Indicate that all input fields which have a corresponding field in the target table (with the same name) should be loaded.- Throws:
LoaderConfigurationException
- When the source data does not expose field names.
-
-