Package org.deidentifier.arx.io
Klasse ImportAdapter
java.lang.Object
org.deidentifier.arx.io.ImportAdapter
- Bekannte direkte Unterklassen:
ImportAdapterCSV,ImportAdapterExcel,ImportAdapterJDBC
Base adapter for all data sources
This defines properties and methods that all data source import adapters have
in common. Data sources itself are described by
ImportConfiguration.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ImportAdaptercreate(ImportConfiguration config) Factory method This will return an appropriate ImportAdapter for each implemented data sourceImportAdapter.Returns the configuration used by the import adapter.String[]Returns the header.Returns the number of records, if available, null otherwiseabstract intReturns the percentage of data has has already been imported.Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methodendetails
-
create
Factory method This will return an appropriate ImportAdapter for each implemented data sourceImportAdapter. Refer to the specific ImportAdapter itself for details.- Parameter:
config-config- Gibt zurück:
- Specific ImportAdapter for given configuration
- Löst aus:
IOException
-
getConfig
Returns the configuration used by the import adapter.- Gibt zurück:
config
-
getHeader
Returns the header.- Gibt zurück:
-
getLength
Returns the number of records, if available, null otherwise- Gibt zurück:
-
getProgress
public abstract int getProgress()Returns the percentage of data has has already been imported.- Gibt zurück:
- Percentage of data already imported, 0 - 100
-