@Component public class BusinessObjectDataDaoHelper extends Object
| Constructor and Description |
|---|
BusinessObjectDataDaoHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<List<String>> |
buildPartitionFilters(List<PartitionValueFilter> partitionValueFilters,
PartitionValueFilter standalonePartitionValueFilter,
BusinessObjectFormatKey businessObjectFormatKey,
Integer businessObjectDataVersion,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType,
BusinessObjectFormatEntity businessObjectFormatEntity)
Build partition filters based on the specified partition value filters.
|
BusinessObjectData |
createBusinessObjectData(BusinessObjectDataCreateRequest request)
Creates a new business object data from the request information.
|
BusinessObjectData |
createBusinessObjectData(BusinessObjectDataCreateRequest request,
boolean fileSizeRequired)
Creates a new business object data from the request information.
|
StorageUnitEntity |
createStorageUnitEntity(BusinessObjectDataEntity businessObjectDataEntity,
StorageEntity storageEntity,
StorageDirectory storageDirectory,
List<StorageFile> storageFiles,
Boolean isDiscoverStorageFiles)
Creates a storage unit entity per specified parameters.
|
BusinessObjectDataEntity |
getBusinessObjectDataEntity(BusinessObjectDataKey businessObjectDataKey)
Gets business object data based on the key information.
|
BusinessObjectDataEntity |
getBusinessObjectDataEntityByKeyAndStatus(BusinessObjectDataKey businessObjectDataKey,
String businessObjectDataStatus)
Retrieves business object data by it's key.
|
List<String> |
getPartitionValues(PartitionValueFilter partitionValueFilter,
String partitionKey,
int partitionColumnPosition,
BusinessObjectFormatKey businessObjectFormatKey,
Integer businessObjectDataVersion,
List<String> storageNames,
String storagePlatformType,
String excludedStoragePlatformType,
BusinessObjectFormatEntity businessObjectFormatEntity)
Builds a list of partition values from the partition value filter.
|
void |
triggerNotificationsForCreateBusinessObjectData(BusinessObjectData businessObjectData)
Trigger business object data and storage unit notification for business object data creation event.
|
void |
triggerNotificationsForInvalidateUnregisteredBusinessObjectData(BusinessObjectDataInvalidateUnregisteredResponse businessObjectDataInvalidateUnregisteredResponse)
Trigger business object data and storage unit notification for unregistered business object data invalidation event.
|
void |
updateBusinessObjectDataStatus(BusinessObjectDataEntity businessObjectDataEntity,
String status)
Update the business object data status.
|
public List<List<String>> buildPartitionFilters(List<PartitionValueFilter> partitionValueFilters, PartitionValueFilter standalonePartitionValueFilter, BusinessObjectFormatKey businessObjectFormatKey, Integer businessObjectDataVersion, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType, BusinessObjectFormatEntity businessObjectFormatEntity)
partitionValueFilters - the list of partition value filtersstandalonePartitionValueFilter - the standalone partition value filterbusinessObjectFormatKey - the business object format keybusinessObjectDataVersion - the business object data versionstorageNames - the optional list of storage names (case-insensitive)storagePlatformType - the optional storage platform type, e.g. S3 for Hive DDL. It is ignored when the list of storages is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storages is not empty or
the storage platform type is specifiedbusinessObjectFormatEntity - the business object format entitypublic BusinessObjectData createBusinessObjectData(BusinessObjectDataCreateRequest request)
request - the requestpublic BusinessObjectData createBusinessObjectData(BusinessObjectDataCreateRequest request, boolean fileSizeRequired)
request - the requestfileSizeRequired - specifies if fileSizeBytes value is required or notpublic StorageUnitEntity createStorageUnitEntity(BusinessObjectDataEntity businessObjectDataEntity, StorageEntity storageEntity, StorageDirectory storageDirectory, List<StorageFile> storageFiles, Boolean isDiscoverStorageFiles)
businessObjectDataEntity - the business object data entitystorageEntity - the storage entitystorageDirectory - the storage directorystorageFiles - the list of storage filesisDiscoverStorageFiles - specifies ifpublic BusinessObjectDataEntity getBusinessObjectDataEntity(BusinessObjectDataKey businessObjectDataKey)
businessObjectDataKey - the business object data key.public BusinessObjectDataEntity getBusinessObjectDataEntityByKeyAndStatus(BusinessObjectDataKey businessObjectDataKey, String businessObjectDataStatus)
businessObjectDataKey - the business object data keybusinessObjectDataStatus - the business object data status. This parameter is ignored when the business object data version is specified.public List<String> getPartitionValues(PartitionValueFilter partitionValueFilter, String partitionKey, int partitionColumnPosition, BusinessObjectFormatKey businessObjectFormatKey, Integer businessObjectDataVersion, List<String> storageNames, String storagePlatformType, String excludedStoragePlatformType, BusinessObjectFormatEntity businessObjectFormatEntity)
partitionValueFilter - the partition value filter that was validated to have exactly one partition value filter optionpartitionKey - the partition keypartitionColumnPosition - the partition column position (one-based numbering)businessObjectFormatKey - the business object format keybusinessObjectDataVersion - the business object data versionstorageNames - the optional list of storage names (case-insensitive)storagePlatformType - the optional storage platform type, e.g. S3 for Hive DDL. It is ignored when the list of storages is not emptyexcludedStoragePlatformType - the optional storage platform type to be excluded from search. It is ignored when the list of storages is not empty or
the storage platform type is specifiedbusinessObjectFormatEntity - the business object format entitypublic void triggerNotificationsForCreateBusinessObjectData(BusinessObjectData businessObjectData)
businessObjectData - the business object datapublic void triggerNotificationsForInvalidateUnregisteredBusinessObjectData(BusinessObjectDataInvalidateUnregisteredResponse businessObjectDataInvalidateUnregisteredResponse)
businessObjectDataInvalidateUnregisteredResponse - the business object data invalidate unregistered responsepublic void updateBusinessObjectDataStatus(BusinessObjectDataEntity businessObjectDataEntity, String status)
businessObjectDataEntity - the business object data entitystatus - the statusCopyright © 2019. All rights reserved.