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.-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedImportAdapter(ImportConfiguration config) Creates a new instance of this object with given configuration. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ImportAdaptercreate(ImportConfiguration config) Factory method This will return an appropriate ImportAdapter for each implemented data sourceImportAdapter.protected DataType<?>[]Returns an array with datatypes of columns that should be imported.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Felddetails
-
header
The header. -
dataTypes
Array of datatypes describing the columns. -
indexes
protected int[] indexesIndexes of columns that should be imported This keeps track of columns that should be imported, as not all columns will necessarily be imported.
-
-
Konstruktordetails
-
ImportAdapter
Creates a new instance of this object with given configuration.- Parameter:
config-config
-
-
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
-
getColumnDatatypes
Returns an array with datatypes of columns that should be imported.- Gibt zurück:
- Array containing datatypes of columns that should be imported
-