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.
Modifier and Type | Method and Description |
---|---|
LoaderRowsStep<R> |
loadArrays(java.lang.Iterable<? extends java.lang.Object[]> arrays)
Load in-memory data.
|
LoaderRowsStep<R> |
loadArrays(java.util.Iterator<? extends java.lang.Object[]> arrays)
Load in-memory data.
|
LoaderRowsStep<R> |
loadArrays(java.lang.Object[]... arrays)
Load in-memory data.
|
LoaderRowsStep<R> |
loadArrays(java.util.stream.Stream<? extends java.lang.Object[]> arrays)
Load in-memory data.
|
LoaderCSVStep<R> |
loadCSV(java.io.File file)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.File file,
java.nio.charset.Charset cs)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.File file,
java.nio.charset.CharsetDecoder dec)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.File file,
java.lang.String charsetName)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.InputStream stream)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.InputStream stream,
java.nio.charset.Charset cs)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.InputStream stream,
java.nio.charset.CharsetDecoder dec)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.InputStream stream,
java.lang.String charsetName)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.io.Reader reader)
Load CSV data.
|
LoaderCSVStep<R> |
loadCSV(java.lang.String data)
Load CSV data.
|
LoaderJSONStep<R> |
loadJSON(java.io.File file)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.File file,
java.nio.charset.Charset cs)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.File file,
java.nio.charset.CharsetDecoder dec)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.File file,
java.lang.String charsetName)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.InputStream stream)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.InputStream stream,
java.nio.charset.Charset cs)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.InputStream stream,
java.nio.charset.CharsetDecoder dec)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.InputStream stream,
java.lang.String charsetName)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.io.Reader reader)
Load JSON data.
|
LoaderJSONStep<R> |
loadJSON(java.lang.String data)
Load JSON data.
|
LoaderRowsStep<R> |
loadRecords(java.lang.Iterable<? extends Record> records)
Load in-memory data.
|
LoaderRowsStep<R> |
loadRecords(java.util.Iterator<? extends Record> records)
Load in-memory data.
|
LoaderRowsStep<R> |
loadRecords(Record... records)
Load in-memory data.
|
LoaderRowsStep<R> |
loadRecords(java.util.stream.Stream<? extends Record> records)
Load in-memory data.
|
LoaderXMLStep<R> |
loadXML(java.io.File file)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.File file,
java.nio.charset.Charset cs)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.File file,
java.nio.charset.CharsetDecoder dec)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.File file,
java.lang.String charsetName)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(org.xml.sax.InputSource source)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.InputStream stream)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.InputStream stream,
java.nio.charset.Charset cs)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.InputStream stream,
java.nio.charset.CharsetDecoder dec)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.InputStream stream,
java.lang.String charsetName)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.io.Reader reader)
Load XML data.
|
LoaderXMLStep<R> |
loadXML(java.lang.String data)
Load XML data.
|
LoaderRowsStep<R> loadArrays(java.lang.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(java.lang.Iterable<? extends java.lang.Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadArrays(java.util.Iterator<? extends java.lang.Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadArrays(java.util.stream.Stream<? extends java.lang.Object[]> arrays)
Like loadArrays(Object[][])
, providing the possibility of lazy
materialisation of the input arrays.
LoaderRowsStep<R> loadRecords(Record... records)
LoaderRowsStep<R> loadRecords(java.lang.Iterable<? extends Record> records)
loadRecords(Record...)
LoaderRowsStep<R> loadRecords(java.util.Iterator<? extends Record> records)
loadRecords(Record...)
LoaderRowsStep<R> loadRecords(java.util.stream.Stream<? extends Record> records)
loadRecords(Record...)
@Support LoaderCSVStep<R> loadCSV(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(java.io.File file, java.lang.String charsetName) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
@Support LoaderCSVStep<R> loadCSV(java.io.File file, java.nio.charset.Charset cs) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(java.io.File file, java.nio.charset.CharsetDecoder dec) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderCSVStep<R> loadCSV(java.lang.String data)
@Support LoaderCSVStep<R> loadCSV(java.io.InputStream stream)
@Support LoaderCSVStep<R> loadCSV(java.io.InputStream stream, java.lang.String charsetName) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
@Support LoaderCSVStep<R> loadCSV(java.io.InputStream stream, java.nio.charset.Charset cs)
@Support LoaderCSVStep<R> loadCSV(java.io.InputStream stream, java.nio.charset.CharsetDecoder dec)
@Support LoaderCSVStep<R> loadCSV(java.io.Reader reader)
@Support LoaderXMLStep<R> loadXML(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderXMLStep<R> loadXML(java.io.File file, java.lang.String charsetName) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
@Support LoaderXMLStep<R> loadXML(java.io.File file, java.nio.charset.Charset cs) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderXMLStep<R> loadXML(java.io.File file, java.nio.charset.CharsetDecoder dec) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderXMLStep<R> loadXML(java.lang.String data)
@Support LoaderXMLStep<R> loadXML(java.io.InputStream stream)
@Support LoaderXMLStep<R> loadXML(java.io.InputStream stream, java.lang.String charsetName) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
@Support LoaderXMLStep<R> loadXML(java.io.InputStream stream, java.nio.charset.Charset cs)
@Support LoaderXMLStep<R> loadXML(java.io.InputStream stream, java.nio.charset.CharsetDecoder dec)
@Support LoaderXMLStep<R> loadXML(java.io.Reader reader)
@Support LoaderXMLStep<R> loadXML(org.xml.sax.InputSource source)
@Support LoaderJSONStep<R> loadJSON(java.io.File file) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(java.io.File file, java.lang.String charsetName) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
@Support LoaderJSONStep<R> loadJSON(java.io.File file, java.nio.charset.Charset cs) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(java.io.File file, java.nio.charset.CharsetDecoder dec) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@Support LoaderJSONStep<R> loadJSON(java.lang.String data)
@Support LoaderJSONStep<R> loadJSON(java.io.InputStream stream)
@Support LoaderJSONStep<R> loadJSON(java.io.InputStream stream, java.lang.String charsetName) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
@Support LoaderJSONStep<R> loadJSON(java.io.InputStream stream, java.nio.charset.Charset cs)
@Support LoaderJSONStep<R> loadJSON(java.io.InputStream stream, java.nio.charset.CharsetDecoder dec)
@Support LoaderJSONStep<R> loadJSON(java.io.Reader reader)
Copyright © 2018. All Rights Reserved.