-
- All Known Subinterfaces:
LoaderOptionsStep<R>
public interface LoaderSourceStep<R extends Record>
TheLoader
API is used for configuring data loads.The step in constructing the
Loader
object where you can specify the load type and data source.- Author:
- Lukas Eder, Johannes Bühler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoaderRowsStep<R>
loadArrays(Iterable<? extends Object[]> arrays)
Load in-memory data.LoaderRowsStep<R>
loadArrays(Object[]... arrays)
Load in-memory data.LoaderRowsStep<R>
loadArrays(Iterator<? extends Object[]> arrays)
Load in-memory data.LoaderRowsStep<R>
loadArrays(Stream<? extends Object[]> arrays)
Load in-memory data.LoaderCSVStep<R>
loadCSV(File file)
Load CSV data.LoaderCSVStep<R>
loadCSV(File file, String charsetName)
Load CSV data.LoaderCSVStep<R>
loadCSV(File file, Charset cs)
Load CSV data.LoaderCSVStep<R>
loadCSV(File file, CharsetDecoder dec)
Load CSV data.LoaderCSVStep<R>
loadCSV(InputStream stream)
Load CSV data.LoaderCSVStep<R>
loadCSV(InputStream stream, String charsetName)
Load CSV data.LoaderCSVStep<R>
loadCSV(InputStream stream, Charset cs)
Load CSV data.LoaderCSVStep<R>
loadCSV(InputStream stream, CharsetDecoder dec)
Load CSV data.LoaderCSVStep<R>
loadCSV(Reader reader)
Load CSV data.LoaderCSVStep<R>
loadCSV(String data)
Load CSV data.LoaderJSONStep<R>
loadJSON(File file)
Load JSON data.LoaderJSONStep<R>
loadJSON(File file, String charsetName)
Load JSON data.LoaderJSONStep<R>
loadJSON(File file, Charset cs)
Load JSON data.LoaderJSONStep<R>
loadJSON(File file, CharsetDecoder dec)
Load JSON data.LoaderJSONStep<R>
loadJSON(InputStream stream)
Load JSON data.LoaderJSONStep<R>
loadJSON(InputStream stream, String charsetName)
Load JSON data.LoaderJSONStep<R>
loadJSON(InputStream stream, Charset cs)
Load JSON data.LoaderJSONStep<R>
loadJSON(InputStream stream, CharsetDecoder dec)
Load JSON data.LoaderJSONStep<R>
loadJSON(Reader reader)
Load JSON data.LoaderJSONStep<R>
loadJSON(String data)
Load JSON data.LoaderRowsStep<R>
loadRecords(Iterable<? extends Record> records)
Load in-memory data.LoaderRowsStep<R>
loadRecords(Iterator<? extends Record> records)
Load in-memory data.LoaderRowsStep<R>
loadRecords(Stream<? extends Record> records)
Load in-memory data.LoaderRowsStep<R>
loadRecords(Record... records)
Load in-memory data.LoaderXMLStep<R>
loadXML(File file)
Load XML data.LoaderXMLStep<R>
loadXML(File file, String charsetName)
Load XML data.LoaderXMLStep<R>
loadXML(File file, Charset cs)
Load XML data.LoaderXMLStep<R>
loadXML(File file, CharsetDecoder dec)
Load XML data.LoaderXMLStep<R>
loadXML(InputStream stream)
Load XML data.LoaderXMLStep<R>
loadXML(InputStream stream, String charsetName)
Load XML data.LoaderXMLStep<R>
loadXML(InputStream stream, Charset cs)
Load XML data.LoaderXMLStep<R>
loadXML(InputStream stream, CharsetDecoder dec)
Load XML data.LoaderXMLStep<R>
loadXML(Reader reader)
Load XML data.LoaderXMLStep<R>
loadXML(String data)
Load XML data.LoaderXMLStep<R>
loadXML(InputSource source)
Load XML data.
-
-
-
Method Detail
-
loadArrays
LoaderRowsStep<R> loadArrays(Object[]... arrays)
Load in-memory data.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'sDataType
viaDataType.convert(Object)
. The matching is similar to that ofRecord.fromArray(Object[], Field...)
.
-
loadArrays
LoaderRowsStep<R> loadArrays(Iterable<? extends Object[]> arrays)
Load in-memory data.Like
loadArrays(Object[][])
, providing the possibility of lazy materialisation of the input arrays.
-
loadArrays
LoaderRowsStep<R> loadArrays(Iterator<? extends Object[]> arrays)
Load in-memory data.Like
loadArrays(Object[][])
, providing the possibility of lazy materialisation of the input arrays.
-
loadArrays
LoaderRowsStep<R> loadArrays(Stream<? extends Object[]> arrays)
Load in-memory data.Like
loadArrays(Object[][])
, providing the possibility of lazy materialisation of the input arrays.
-
loadRecords
LoaderRowsStep<R> loadRecords(Record... records)
Load in-memory data.
-
loadRecords
LoaderRowsStep<R> loadRecords(Iterable<? extends Record> records)
Load in-memory data.- See Also:
loadRecords(Record...)
-
loadRecords
LoaderRowsStep<R> loadRecords(Iterator<? extends Record> records)
Load in-memory data.- See Also:
loadRecords(Record...)
-
loadRecords
LoaderRowsStep<R> loadRecords(Stream<? extends Record> records)
Load in-memory data.- See Also:
loadRecords(Record...)
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(File file) throws FileNotFoundException
Load CSV data.- Throws:
FileNotFoundException
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
Load CSV data.
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(File file, Charset cs) throws FileNotFoundException
Load CSV data.- Throws:
FileNotFoundException
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(File file, CharsetDecoder dec) throws FileNotFoundException
Load CSV data.- Throws:
FileNotFoundException
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(String data)
Load CSV data.
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(InputStream stream)
Load CSV data.
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(InputStream stream, String charsetName) throws UnsupportedEncodingException
Load CSV data.- Throws:
UnsupportedEncodingException
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(InputStream stream, Charset cs)
Load CSV data.
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(InputStream stream, CharsetDecoder dec)
Load CSV data.
-
loadCSV
@Support LoaderCSVStep<R> loadCSV(Reader reader)
Load CSV data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(File file) throws FileNotFoundException
Load XML data.- Throws:
FileNotFoundException
-
loadXML
@Support LoaderXMLStep<R> loadXML(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(File file, Charset cs) throws FileNotFoundException
Load XML data.- Throws:
FileNotFoundException
-
loadXML
@Support LoaderXMLStep<R> loadXML(File file, CharsetDecoder dec) throws FileNotFoundException
Load XML data.- Throws:
FileNotFoundException
-
loadXML
@Support LoaderXMLStep<R> loadXML(String data)
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(InputStream stream)
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(InputStream stream, String charsetName) throws UnsupportedEncodingException
Load XML data.- Throws:
UnsupportedEncodingException
-
loadXML
@Support LoaderXMLStep<R> loadXML(InputStream stream, Charset cs)
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(InputStream stream, CharsetDecoder dec)
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(Reader reader)
Load XML data.
-
loadXML
@Support LoaderXMLStep<R> loadXML(InputSource source)
Load XML data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(File file) throws FileNotFoundException
Load JSON data.- Throws:
FileNotFoundException
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(File file, String charsetName) throws FileNotFoundException, UnsupportedEncodingException
Load JSON data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(File file, Charset cs) throws FileNotFoundException
Load JSON data.- Throws:
FileNotFoundException
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(File file, CharsetDecoder dec) throws FileNotFoundException
Load JSON data.- Throws:
FileNotFoundException
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(String data)
Load JSON data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(InputStream stream)
Load JSON data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(InputStream stream, String charsetName) throws UnsupportedEncodingException
Load JSON data.- Throws:
UnsupportedEncodingException
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(InputStream stream, Charset cs)
Load JSON data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(InputStream stream, CharsetDecoder dec)
Load JSON data.
-
loadJSON
@Support LoaderJSONStep<R> loadJSON(Reader reader)
Load JSON data.
-
-