Package org.openmetadata.service.jdbi3
Class TeamRepository.TeamCsv
- java.lang.Object
-
- org.openmetadata.csv.EntityCsv<Team>
-
- org.openmetadata.service.jdbi3.TeamRepository.TeamCsv
-
- Enclosing class:
- TeamRepository
public static class TeamRepository.TeamCsv extends EntityCsv<Team>
-
-
Field Summary
Fields Modifier and Type Field Description static CsvDocumentationDOCUMENTATIONstatic List<CsvHeader>HEADERS-
Fields inherited from class org.openmetadata.csv.EntityCsv
dryRunCreatedEntities, ENTITY_CREATED, ENTITY_UPDATED, FIELD_ERROR_MSG, IMPORT_STATUS_DETAILS, IMPORT_STATUS_FAILED, IMPORT_STATUS_HEADER, IMPORT_STATUS_SUCCESS, processRecord
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexportCsv()static StringinvalidTeam(int field, String team, String importedTeam, String parentName)protected TeamtoEntity(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord)Implement this method to a CSV record and turn it into an entityprotected List<String>toRecord(Team entity)Implement this method to export an entity into a list of fields to create a CSV record-
Methods inherited from class org.openmetadata.csv.EntityCsv
entityNotFound, exportCsv, failed, fieldRequired, getBoolean, getCsvDocumentation, getEntityByName, getEntityReference, getEntityReference, getEntityReferences, getOwner, getOwnerAsUser, getResultHeaders, getTagLabels, getUserOrTeamEntityReferences, importCsv, importFailure, invalidBoolean, invalidField, invalidFieldCount, invalidHeader, invalidOwner
-
-
-
-
Field Detail
-
DOCUMENTATION
public static final CsvDocumentation DOCUMENTATION
-
-
Method Detail
-
toEntity
protected Team toEntity(org.apache.commons.csv.CSVPrinter printer, org.apache.commons.csv.CSVRecord csvRecord) throws IOException
Description copied from class:EntityCsvImplement this method to a CSV record and turn it into an entity- Specified by:
toEntityin classEntityCsv<Team>- Throws:
IOException
-
toRecord
protected List<String> toRecord(Team entity)
Description copied from class:EntityCsvImplement this method to export an entity into a list of fields to create a CSV record
-
invalidTeam
public static String invalidTeam(int field, String team, String importedTeam, String parentName)
-
exportCsv
public String exportCsv() throws IOException
- Throws:
IOException
-
-