Package org.openmetadata.service.jdbi3
Class TableRepository.TableCsv
- Enclosing class:
- TableRepository
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openmetadata.csv.EntityCsv
EntityCsv.ImportResult -
Field Summary
FieldsFields inherited from class org.openmetadata.csv.EntityCsv
dryRunCreatedEntities, ENTITY_CREATED, ENTITY_UPDATED, FIELD_ERROR_MSG, IMPORT_FAILED, IMPORT_SKIPPED, IMPORT_STATUS_DETAILS, IMPORT_STATUS_HEADER, IMPORT_SUCCESS, processRecord, recordIndex -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplement this method to export an entity into a list of fields to create a CSV recordprotected voidcreateEntity(org.apache.commons.csv.CSVPrinter printer, List<org.apache.commons.csv.CSVRecord> csvRecords) Implement this method to a CSV record and turn it into an entityupdateColumn(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord) voidupdateColumns(org.apache.commons.csv.CSVPrinter printer, List<org.apache.commons.csv.CSVRecord> csvRecords, List<EntityCsv.ImportResult> results) Methods inherited from class org.openmetadata.csv.EntityCsv
addRecord, columnNotFound, createEntity, entityNotFound, exportCsv, exportCsv, failed, fieldRequired, getBoolean, getCsvDocumentation, getEntityByName, getEntityReference, getEntityReference, getEntityReferences, getNextRecord, getNextRecord, getOwner, getOwnerAsUser, getResultHeaders, getTagLabels, importCsv, importFailure, importSuccess, invalidBoolean, invalidField, invalidFieldCount, invalidHeader, invalidOwner, resetRequiredColumns
-
Field Details
-
DOCUMENTATION
-
HEADERS
-
COLUMN_HEADERS
-
-
Method Details
-
createEntity
protected void createEntity(org.apache.commons.csv.CSVPrinter printer, List<org.apache.commons.csv.CSVRecord> csvRecords) throws IOException Description copied from class:EntityCsvImplement this method to a CSV record and turn it into an entity- Specified by:
createEntityin classEntityCsv<Table>- Throws:
IOException
-
updateColumns
public void updateColumns(org.apache.commons.csv.CSVPrinter printer, List<org.apache.commons.csv.CSVRecord> csvRecords, List<EntityCsv.ImportResult> results) throws IOException - Throws:
IOException
-
updateColumn
public EntityCsv.ImportResult updateColumn(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord) throws IOException - Throws:
IOException
-
addRecord
Description copied from class:EntityCsvImplement this method to export an entity into a list of fields to create a CSV record
-