public class DataEngineDataFileHandler extends Object
| Constructor and Description |
|---|
DataEngineDataFileHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
DataEngineCommonHandler dataEngineCommonHandler,
AssetHandler<DataFile> fileHandler,
DataEngineSchemaTypeHandler dataEngineSchemaTypeHandler,
DataEngineFolderHierarchyHandler dataEngineFolderHierarchyHandler,
DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
String |
upsertFileAssetIntoCatalog(String fileTypeName,
String fileTypeGuid,
DataFile file,
SchemaType schemaType,
List<Attribute> columns,
Map<String,Object> extendedProperties,
String externalSourceGuid,
String externalSourceName,
String userId,
String methodName)
Constructs a DataFile or CSVFile, its specific TabularSchemaType and its TabularColumns.
|
public DataEngineDataFileHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, DataEngineCommonHandler dataEngineCommonHandler, AssetHandler<DataFile> fileHandler, DataEngineSchemaTypeHandler dataEngineSchemaTypeHandler, DataEngineFolderHierarchyHandler dataEngineFolderHierarchyHandler, DataEngineConnectionAndEndpointHandler dataEngineConnectionAndEndpointHandler)
invalidParameterHandler - handler for managing parameter errorsrepositoryHelper - provides utilities for manipulating the repository services objectsdataEngineCommonHandler - provides common Data Engine Omas utilitiesfileHandler - provides utilities specific for manipulating DataFile and CSVFiledataEngineSchemaTypeHandler - provides utilities specific for manipulating SchemaTypedataEngineFolderHierarchyHandler - provides utilities specific for manipulating FileFolderpublic String upsertFileAssetIntoCatalog(String fileTypeName, String fileTypeGuid, DataFile file, SchemaType schemaType, List<Attribute> columns, Map<String,Object> extendedProperties, String externalSourceGuid, String externalSourceName, String userId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
fileTypeName - file type namefileTypeGuid - file type guidfile - actual data fileschemaType - file schemacolumns - file columnsextendedProperties - extended propertiesexternalSourceGuid - external source guidexternalSourceName - external source nameuserId - user idmethodName - method nameInvalidParameterException - if invalid parametersPropertyServerException - if errors in repositoryUserNotAuthorizedException - if user not authorizedCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.