public interface LoaderSourceStep<R extends Record>
Loader
API is used for configuring data loads.
The step in constructing the Loader
object where you can specify the
load type and data source.
LoaderRowsStep<R> loadArrays(Object[]... arrays)
Feed a set of array representations of records to the loader API. Each
array's elements are matched with the subsequent
LoaderRowsStep.fields(Field...)
specification, by index. The
values in each array are converted to the matching field's
DataType
via DataType.convert(Object)
. The matching is
similar to that of Record.fromArray(Object[], Field...)
.
LoaderRowsStep<R> loadArrays(Iterable<? extends Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadArrays(Iterator<? extends Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadArrays(java.util.stream.Stream<? extends Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadRecords(Record... records)
LoaderRowsStep<R> loadRecords(Iterable<? extends Record> records)
loadRecords(Record...)
LoaderRowsStep<R> loadRecords(Iterator<? extends Record> records)
loadRecords(Record...)
LoaderRowsStep<R> loadRecords(java.util.stream.Stream<? extends Record> records)
loadRecords(Record...)
@Support LoaderCSVStep<R> loadCSV(File file) throws FileNotFoundException
FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
@Support LoaderCSVStep<R> loadCSV(File file, Charset cs) throws FileNotFoundException
FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(File file, CharsetDecoder dec) throws FileNotFoundException
FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(String data)
@Support LoaderCSVStep<R> loadCSV(InputStream stream)
@Support LoaderCSVStep<R> loadCSV(InputStream stream, String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingException
@Support LoaderCSVStep<R> loadCSV(InputStream stream, Charset cs)
@Support LoaderCSVStep<R> loadCSV(InputStream stream, CharsetDecoder dec)
@Support LoaderCSVStep<R> loadCSV(Reader reader)
@Support LoaderXMLStep<R> loadXML(File file) throws FileNotFoundException
FileNotFoundException
@Support LoaderXMLStep<R> loadXML(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
@Support LoaderXMLStep<R> loadXML(File file, Charset cs) throws FileNotFoundException
FileNotFoundException
@Support LoaderXMLStep<R> loadXML(File file, CharsetDecoder dec) throws FileNotFoundException
FileNotFoundException
@Support LoaderXMLStep<R> loadXML(String data)
@Support LoaderXMLStep<R> loadXML(InputStream stream)
@Support LoaderXMLStep<R> loadXML(InputStream stream, String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingException
@Support LoaderXMLStep<R> loadXML(InputStream stream, Charset cs)
@Support LoaderXMLStep<R> loadXML(InputStream stream, CharsetDecoder dec)
@Support LoaderXMLStep<R> loadXML(Reader reader)
@Support LoaderXMLStep<R> loadXML(InputSource source)
@Support LoaderJSONStep<R> loadJSON(File file) throws FileNotFoundException
FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
@Support LoaderJSONStep<R> loadJSON(File file, Charset cs) throws FileNotFoundException
FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(File file, CharsetDecoder dec) throws FileNotFoundException
FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(String data)
@Support LoaderJSONStep<R> loadJSON(InputStream stream)
@Support LoaderJSONStep<R> loadJSON(InputStream stream, String charsetName) throws UnsupportedEncodingException
UnsupportedEncodingException
@Support LoaderJSONStep<R> loadJSON(InputStream stream, Charset cs)
@Support LoaderJSONStep<R> loadJSON(InputStream stream, CharsetDecoder dec)
@Support LoaderJSONStep<R> loadJSON(Reader reader)
Copyright © 2016. All Rights Reserved.