AirLay backend

RebuildLengthTask extends AirlayTask
in package

Table of Contents

LIMIT  = 10000
mainAction()  : void
processBody()  : void
abortWorkWithMessage()  : never
getDataSetTitle()  : string
parseFlagsFromParams()  : void
Parse command line arguments from array. Output default values if --help or -h argument specified.
processMessage()  : void
requestConfirm()  : bool
buildPipeline()  : array<string|int, mixed>
getLineStrings()  : array<string|int, FeatureEntity>
rebuildLength()  : void
syncLengthFieldsForRelation()  : void
updateMasterProperties()  : void

Constants

Methods

abortWorkWithMessage()

protected abortWorkWithMessage(string $message) : never
Parameters
$message : string
Return values
never

getDataSetTitle()

protected getDataSetTitle(array<string|int, mixed>|DataSetEntity $dataSet) : string
Parameters
$dataSet : array<string|int, mixed>|DataSetEntity
Return values
string

parseFlagsFromParams()

Parse command line arguments from array. Output default values if --help or -h argument specified.

protected parseFlagsFromParams(Flags $flags[, array<string|int, mixed> $params = [] ]) : void
Parameters
$flags : Flags
$params : array<string|int, mixed> = []
Return values
void

requestConfirm()

protected requestConfirm(string $message) : bool
Parameters
$message : string
Return values
bool

buildPipeline()

private buildPipeline(FeaturesCollection|RelationsCollection $featuresCollection, FeaturesCollection|RelationsCollection $masterCollection, string $uniqueField, array<string|int, mixed> $uniqueValues) : array<string|int, mixed>
Parameters
$featuresCollection : FeaturesCollection|RelationsCollection
$masterCollection : FeaturesCollection|RelationsCollection
$uniqueField : string
$uniqueValues : array<string|int, mixed>
Return values
array<string|int, mixed>

getLineStrings()

private getLineStrings(FeaturesCollection $collection, ObjectId|MinKey $startId) : array<string|int, FeatureEntity>
Parameters
$collection : FeaturesCollection
$startId : ObjectId|MinKey
Return values
array<string|int, FeatureEntity>

rebuildLength()

private rebuildLength(DataSetEntity $dataSet, string|null $oldLengthField, string|null $newLengthField, string $newMeasure) : void
Parameters
$dataSet : DataSetEntity
$oldLengthField : string|null
$newLengthField : string|null
$newMeasure : string
Return values
void

syncLengthFieldsForRelation()

private syncLengthFieldsForRelation(DataSetEntity $dataSet, string|null $oldLengthField, string|null $newLengthField, array<string|int, mixed> $features) : void
Parameters
$dataSet : DataSetEntity
$oldLengthField : string|null
$newLengthField : string|null
$features : array<string|int, mixed>
Return values
void

updateMasterProperties()

private updateMasterProperties(DataSetEntity $masterDataSet, array<string|int, FeatureEntity$features) : void
Parameters
$masterDataSet : DataSetEntity
$features : array<string|int, FeatureEntity>
Return values
void

Search results