◆ CloudAspectEngineBase()
fiftyone.pipeline.cloudrequestengine.flowelements.CloudAspectEngineBase< TData extends AspectData >.CloudAspectEngineBase | ( | Logger | logger, |
ElementDataFactory< TData > | aspectDataFactory | ||
) |
Construct a new instance of the CloudAspectEngineBase.
- Parameters
-
- logger - logger instance to use for logging
- aspectDataFactory - the factory to use when creating a TData instance
Member Function Documentation
◆ createAPVMap()
Map<String, Object> fiftyone.pipeline.cloudrequestengine.flowelements.CloudAspectEngineBase< TData extends AspectData >.createAPVMap ( Map< String, Object > cloudData, List< ElementPropertyMetaData > propertyMetaData ) protectedUse the supplied cloud data to create a map of AspectPropertyValue instances.
A new instance of AspectPropertyValue will be created for each value and the value from the cloud data assigned to it. If the value is null, then the code will look for a property in the cloud data with the same name suffixed with 'nullreason'. If it exists, then its value will be used to set the no value message in the new AspectPropertyValue.
- Parameters
-
- cloudData - the cloud data to be processed. Keys are flat property names (i.e. no '.' separators)
- propertyMetaData - the meta data for the properties in the data. This will usually be the list from getProperties() but will be different if dealing with sub-properties
- Returns
- a map containing the original values converted to AspectPropertyValue instances. Any entries in the source map where the key ends with 'nullreason' will not appear in the output
◆ getRequestEngine()
RequestEngineAccessor fiftyone.pipeline.cloudrequestengine.flowelements.CloudAspectEngineBase< TData extends AspectData >.getRequestEngine ( ) protectedUsed to access the CloudRequestEngine that will be making HTTP requests on behalf of this engine.
- Returns
- A RequestEngineAccessor.
◆ processCloudEngine()
void fiftyone.pipeline.cloudrequestengine.flowelements.CloudAspectEngineBase< TData extends AspectData >.processCloudEngine ( FlowData data, TData aspectData, String json ) protectedA virtual method to be implemented by the derived class which uses the JsonResponse from the CloudRequestEngine to populate the TData instance accordingly.
- Parameters
-
- data - to get the raw JSON data from.
- aspectData - instance to populate with values.
- json - The JSON response from the CloudRequestEngine
◆ processEngine()
void fiftyone.pipeline.cloudrequestengine.flowelements.CloudAspectEngineBase< TData extends AspectData >.processEngine ( FlowData data, TData aspectData ) protectedRetrieve the raw JSON response from the CloudRequestEngine in this pipeline, extract the data for this specific engine and populate the TData instance accordingly.
- Parameters
-
- data - to get the raw JSON data from.
- aspectData - instance to populate with values.