-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoaderJSONOptionsStep<R>
fields(Collection<? extends Field<?>> fields)
Specify the fields to be loaded into the table in the correct order.LoaderJSONOptionsStep<R>
fields(Field<?>... fields)
Specify the fields to be loaded into the table in the correct order.LoaderJSONOptionsStep<R>
fields(LoaderFieldMapper mapper)
Specify a function to apply on each input field to receive the target table's field.LoaderJSONOptionsStep<R>
fieldsFromSource()
Indicate that all input fields which have a corresponding field in the target table (with the same name) should be loaded.
-
-
-
Method Detail
-
fields
@Support 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
@Support 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
@Support 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
@Support LoaderJSONOptionsStep<R> fieldsFromSource()
Indicate that all input fields which have a corresponding field in the target table (with the same name) should be loaded.When
executing the loader
input fields for which there is no match in the target table will be logged and if no field names can be derived for the input data aLoaderConfigurationException
will be reported.
-
-