Package org.deidentifier.arx.io
Klasse ImportAdapterCSV
java.lang.Object
org.deidentifier.arx.io.ImportAdapter
org.deidentifier.arx.io.ImportAdapterCSV
Import adapter for CSV files
This adapter can import data from a CSV file. The CSV file itself is
described by an appropriate
ImportConfigurationCSV object. Internally
this class makes use of CSVDataInput to read the CSV file on a line
by line basis. A counting input stream (@link CountingInputStream} is used in
order for Ungültige Eingabe: "to be able to return the percentage of data
that has already been processed.
@author Karol Babioch
@author Fabian Prasser"-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the number of records, if available, null otherwiseintReturns the percentage of data that has already been returned This divides the amount of bytes that have already been read by the amount of total bytes and casts the result into a percentage.booleanhasNext()Indicates whether there is another element to return This returns true when the CSV file has another line, which would be assigned torowduring the last iteration ofnext().String[]next()Returns the next row The returned element is sorted as defined byand contains as many elements as there are columns selected to import fromUngültige Referenz
ImportColumn#indexImportAdapter.indexes.voidremove()Dummy.Von Klasse geerbte Methoden org.deidentifier.arx.io.ImportAdapter
create, getConfig, getHeaderVon Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining
-
Methodendetails
-
getLength
Beschreibung aus Klasse kopiert:ImportAdapterReturns the number of records, if available, null otherwise- Setzt außer Kraft:
getLengthin KlasseImportAdapter- Gibt zurück:
-
getProgress
public int getProgress()Returns the percentage of data that has already been returned This divides the amount of bytes that have already been read by the amount of total bytes and casts the result into a percentage.- Angegeben von:
getProgressin KlasseImportAdapter- Gibt zurück:
-
hasNext
public boolean hasNext()Indicates whether there is another element to return This returns true when the CSV file has another line, which would be assigned torowduring the last iteration ofnext().- Gibt zurück:
-
next
Returns the next row The returned element is sorted as defined byand contains as many elements as there are columns selected to import fromUngültige Referenz
ImportColumn#indexImportAdapter.indexes. The first row will always contain the names of the columns.headerReturnedis used to keep track of that.- Gibt zurück:
-
remove
public void remove()Dummy.
-