public abstract class CSV2OPGConfigBase
extends java.lang.Object
Constructor and Description |
---|
CSV2OPGConfigBase() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsExtraFields()
Getter to indicate whether or not all the fields in the CSV will be converted to a Vertex or Edge id, label or property i.e.
|
boolean |
allowsMultiLine()
Getter to indicate whether or not fields from can contain multiple lines, i.e.
|
char |
getArrayDelimiter() |
ColumnToAttrMapping[] |
getCtams()
Getter for the
ColumnToAttrMapping array |
java.text.DateFormat |
getDateFormat()
Getter for the preferred Date format used to parse the dates in the CSV file, it can be null.
|
DataConverterListener |
getDcl()
Getter for the instance of DataConverterListener that can be used to report progress and control the conversion process when an error occurs.
|
char |
getDelimiterChar()
Getter for the character used to delimit values in a CSV file, e.g.
|
int |
getDop()
Getter for the degree of parallelism used to optimize converting performance.
|
long |
getOffsetLines()
Getter for the number of lines to skip of the input file
|
char |
getQuotationChar()
Getter for the character used to quote, e.g.
|
CSV2OPGConfigBase |
setAllowExtraFields(boolean allowExtraFields)
Wetter to indicate whether or not all the fields in the CSV will be converted to a Vertex or Edge id, label or property i.e.
|
CSV2OPGConfigBase |
setAllowMultiLine(boolean allowMultiLine)
Setter to indicate whether or not fields from can contain multiple lines, i.e.
|
CSV2OPGConfigBase |
setArrayDelimiter(char arrayDelimiter) |
CSV2OPGConfigBase |
setCtams(ColumnToAttrMapping[] ctams)
Setter for the
ColumnToAttrMapping array |
CSV2OPGConfigBase |
setDateFormat(java.text.DateFormat dateFormat)
Setter for the preferred Date format used to parse the dates in the CSV file, it can be null.
|
CSV2OPGConfigBase |
setDcl(DataConverterListener dcl)
Setter for the instance of DataConverterListener that can be used to report progress and control the conversion process when an error occurs.
|
CSV2OPGConfigBase |
setDelimiterChar(char delimiterChar)
Setter for the character used to delimit values in a CSV file, e.g.
|
CSV2OPGConfigBase |
setDop(int dop)
Setter for the degree of parallelism used to optimize converting performance.
|
CSV2OPGConfigBase |
setOffsetLines(long offsetLines)
Setter for the number of lines to skip of the input file
|
CSV2OPGConfigBase |
setQuotationChar(char quotationChar)
Setter for the character used to quote, e.g.
|
public boolean allowsExtraFields()
public boolean allowsMultiLine()
public char getArrayDelimiter()
public ColumnToAttrMapping[] getCtams()
ColumnToAttrMapping
arraypublic java.text.DateFormat getDateFormat()
public DataConverterListener getDcl()
public char getDelimiterChar()
public int getDop()
public long getOffsetLines()
public char getQuotationChar()
public CSV2OPGConfigBase setAllowExtraFields(boolean allowExtraFields)
allowExtraFields
-public CSV2OPGConfigBase setAllowMultiLine(boolean allowMultiLine)
allowMultiLine
-public CSV2OPGConfigBase setArrayDelimiter(char arrayDelimiter)
public CSV2OPGConfigBase setCtams(ColumnToAttrMapping[] ctams)
ColumnToAttrMapping
arrayctams
- an array of ColumnToAttrMapping objects. Each ColumnToAttrMapping object defines a mapping from a column in CSV file to an attribute of certain type in an OPV and OPE files.public CSV2OPGConfigBase setDateFormat(java.text.DateFormat dateFormat)
dateFormat
-public CSV2OPGConfigBase setDcl(DataConverterListener dcl)
dcl
-public CSV2OPGConfigBase setDelimiterChar(char delimiterChar)
delimiterChar
-public CSV2OPGConfigBase setDop(int dop)
dop
-public CSV2OPGConfigBase setOffsetLines(long offsetLines)
offsetLines
-public CSV2OPGConfigBase setQuotationChar(char quotationChar)
quotationChar
-Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.