ConverterMapService
extends AirlayService
in package
Class ConverterMapService
Table of Contents
- $ : AirlayConfig
- $collection : ConverterMapsCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- convertFeaturesKeyToMapValue() : array<string|int, mixed>
- convertKeys() : array<string|int, mixed>
- createConverterMap() : ConverterMapEntity
- getCollection() : mixed
- updateConverterMap() : void
Properties
$
public
AirlayConfig
$
config
$collection
public
ConverterMapsCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —convertFeaturesKeyToMapValue()
public
convertFeaturesKeyToMapValue(ObjectId $dataSetId, string $format, array<string|int, mixed> $features) : array<string|int, mixed>
Parameters
- $dataSetId : ObjectId
- $format : string
- $features : array<string|int, mixed>
Return values
array<string|int, mixed> —convertKeys()
public
convertKeys(array<string|int, mixed> $map, array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $map : array<string|int, mixed>
- $data : array<string|int, mixed>
Return values
array<string|int, mixed> —createConverterMap()
public
createConverterMap(string $name, string $type, array<string|int, mixed> $map, ObjectId $dataSetId, ObjectId $organizationId) : ConverterMapEntity
Parameters
- $name : string
- $type : string
- $map : array<string|int, mixed>
- $dataSetId : ObjectId
- $organizationId : ObjectId
Return values
ConverterMapEntity —getCollection()
public
getCollection() : mixed
Return values
mixed —updateConverterMap()
public
updateConverterMap(ObjectId $convertMapId, ObjectId $organizationId[, string|null $name = null ][, array<string|int, mixed>|null $map = null ]) : void
Parameters
- $convertMapId : ObjectId
- $organizationId : ObjectId
- $name : string|null = null
- $map : array<string|int, mixed>|null = null