Package org.openmetadata.csv
Class CsvUtil
java.lang.Object
org.openmetadata.csv.CsvUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddEntityReference(List<String> csvRecord, EntityReference ref) addEntityReferences(List<String> csvRecord, List<EntityReference> refs) static voidaddFieldList(List<String> csvRecord, List<String> field) static voidaddOwner(List<String> csvRecord, EntityReference owner) addTagLabels(List<String> csvRecord, List<TagLabel> tags) static voidaddUserOwner(List<String> csvRecord, EntityReference owner) fieldToStrings(String field) static StringgetHeaders(List<CsvHeader> csvHeaders) Get headers from CsvHeadersstatic Stringstatic StringquoteField(List<String> field) Quote a CSV field made of multiple strings that has SEPARATOR or FIELD_SEPARATOR with " "static StringrecordToString(String[] fields) static StringrecordToString(List<String> fields) static StringrecordToString(org.apache.commons.csv.CSVRecord csvRecord)
-
Field Details
-
SEPARATOR
- See Also:
-
FIELD_SEPARATOR
- See Also:
-
LINE_SEPARATOR
- See Also:
-
-
Method Details
-
formatCsv
- Throws:
IOException
-
getHeaders
Get headers from CsvHeaders -
recordToString
-
recordToString
-
recordToString
-
fieldToStrings
-
quote
-
quoteField
Quote a CSV field made of multiple strings that has SEPARATOR or FIELD_SEPARATOR with " " -
addField
-
addField
-
addFieldList
-
addEntityReferences
-
addEntityReference
-
addTagLabels
-
addOwner
-
addUserOwner
-