Package org.deidentifier.arx.io
Klasse ImportConfigurationCSV
java.lang.Object
org.deidentifier.arx.io.ImportConfiguration
org.deidentifier.arx.io.ImportConfigurationFile
org.deidentifier.arx.io.ImportConfigurationCSV
Configuration describing a CSV file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungImportConfigurationCSV(String fileLocation, Charset charset, boolean containsHeader) Creates a new instance of this object.ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, boolean containsHeader) Creates a new instance of this object.ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, boolean containsHeader) Creates a new instance of this object.ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, boolean containsHeader) Creates a new instance of this object.ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader) Creates a new instance of this object.ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader, int maxColumns) Creates a new instance of this object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddColumn(ImportColumn column) Adds a single column to import from This makes sure that onlyImportColumnCSVcan be added, otherwise anIllegalArgumentExceptionwill be thrown.Returns the charset of the CSV file.booleanGets the contains header.charGets the delimiter.charGets the escape.char[]Gets the linebreak.intReturns max columnschargetQuote()Gets the quote.voidsetContainsHeader(boolean containsHeader) Sets the contains header.Von Klasse geerbte Methoden org.deidentifier.arx.io.ImportConfigurationFile
getFileLocation, setFileLocationVon Klasse geerbte Methoden org.deidentifier.arx.io.ImportConfiguration
getColumns, isOptimizedLoading, setOptimizedLoading
-
Konstruktordetails
-
ImportConfigurationCSV
Creates a new instance of this object.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)containsHeader-containsHeader
-
ImportConfigurationCSV
public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, boolean containsHeader) Creates a new instance of this object.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)charset-charsetdelimiter-Ungültige Referenz
#separatorcontainsHeader-containsHeader
-
ImportConfigurationCSV
public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, boolean containsHeader) Creates a new instance of this object.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)charset-charsetdelimiter-delimiterquote-quotecontainsHeader-containsHeader
-
ImportConfigurationCSV
public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, boolean containsHeader) Creates a new instance of this object.- Parameter:
fileLocation-ImportConfigurationFile.setFileLocation(String)charset-charsetdelimiter-delimiterquote-quoteescape-escapecontainsHeader-containsHeader
-
ImportConfigurationCSV
public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader) Creates a new instance of this object.- Parameter:
fileLocation- the file locationcharset- the charsetdelimiter- the delimiterquote- the quoteescape- the escapelinebreak- the linebreakcontainsHeader- the contains header
-
ImportConfigurationCSV
public ImportConfigurationCSV(String fileLocation, Charset charset, char delimiter, char quote, char escape, char[] linebreak, boolean containsHeader, int maxColumns) Creates a new instance of this object.- Parameter:
fileLocation- the file locationcharset- the charsetdelimiter- the delimiterquote- the quoteescape- the escapelinebreak- the linebreakcontainsHeader- the contains headermaxColumns-
-
-
Methodendetails
-
addColumn
Adds a single column to import from This makes sure that onlyImportColumnCSVcan be added, otherwise anIllegalArgumentExceptionwill be thrown.- Angegeben von:
addColumnin KlasseImportConfiguration- Parameter:
column- A single column to import from,ImportColumnCSV
-
getCharset
Returns the charset of the CSV file.- Gibt zurück:
-
getContainsHeader
public boolean getContainsHeader()Gets the contains header.- Gibt zurück:
containsHeader
-
getDelimiter
public char getDelimiter()Gets the delimiter.- Gibt zurück:
delimiter
-
getEscape
public char getEscape()Gets the escape.- Gibt zurück:
quote
-
getLinebreak
public char[] getLinebreak()Gets the linebreak.- Gibt zurück:
linebreak
-
getMaxColumns
public int getMaxColumns()Returns max columns- Gibt zurück:
-
getQuote
public char getQuote()Gets the quote.- Gibt zurück:
quote
-
setContainsHeader
public void setContainsHeader(boolean containsHeader) Sets the contains header.- Parameter:
containsHeader-containsHeader
-