public abstract class ImportAdapter
extends java.lang.Object
implements java.util.Iterator<java.lang.String[]>
ImportConfiguration
.Modifier and Type | Method and Description |
---|---|
static ImportAdapter |
create(ImportConfiguration config)
Factory method
This will return an appropriate ImportAdapter for each implemented data
source
ImportAdapter . |
ImportConfiguration |
getConfig()
Returns the configuration used by the import adapter.
|
java.lang.String[] |
getHeader()
Returns the header.
|
java.lang.Integer |
getLength()
Returns the number of records, if available, null otherwise
|
abstract int |
getProgress()
Returns the percentage of data has has already been imported.
|
public static ImportAdapter create(ImportConfiguration config) throws java.io.IOException
ImportAdapter
. Refer to the specific ImportAdapter itself
for details.config
- config
java.io.IOException
public ImportConfiguration getConfig()
config
public java.lang.String[] getHeader()
public java.lang.Integer getLength()
public abstract int getProgress()