Modifier and Type | Method and 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] - Use
fieldsCorresponding()
instead. |
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(Field<?>... fields)
The JSON column at index i
is inserted into the table field
at index i
. If fields[i] == null
or
fields.length <= i
, then the JSON
column is skipped.
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(Collection<? extends Field<?>> fields)
The JSON column at index i
is inserted into the table field
at index i
. If
new ArrayList(fields).get(i) == null
or
new ArrayList(fields).size() <= i
, then the JSON column
is skipped.
@NotNull @Support @NotNull LoaderJSONOptionsStep<R> fields(LoaderFieldMapper mapper)
The input field obtained from LoaderFieldMapper.LoaderFieldContext.field()
wraps
the JSON column name if any, or an unspecified field enumeration is used.
The LoaderFieldMapper.LoaderFieldContext.index()
property corresponds to the JSON
column index in enumeration order.
@Deprecated @NotNull @Support @NotNull LoaderCSVOptionsStep<R> fieldsFromSource()
fieldsCorresponding()
instead.LoaderConfigurationException
- When the source data does not expose
field names.@NotNull @Support @NotNull LoaderCSVOptionsStep<R> fieldsCorresponding()
LoaderConfigurationException
- When the source data does not expose
field names.Copyright © 2021. All rights reserved.