ImportVolumeMetadata
class ImportVolumeMetadata extends Job implements ShouldQueue
Traits
SerializesModels
InteractsWithQueue
Queueable
Dispatchable
Properties
static int | $insertChunkSize | The number of annotation (label) rows to insert in one chunk. |
|
protected bool | $deleteWhenMissingModels | Ignore this job if the pending volume does not exist any more. |
|
int | $tries | The number of times the job may be attempted. |
Methods
void
handle()
No description
void
insertAnnotations(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)
Insert metadata annotations of a file into the database.
void
void
insertFileLabels(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)
Insert metadata file labels of a file into the database.
Details
at line 47
__construct(PendingVolume $pv)
Create a new job instance.
at line 52
void
handle()
No description
at line 93
protected void
insertAnnotations(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)
Insert metadata annotations of a file into the database.
at line 141
protected void
insertAnnotationChunk(VolumeFile $file, array $annotations, array $annotationLabels)
No description
at line 180
protected void
insertFileLabels(FileMetadata $meta, VolumeFile $file, array $userMap, array $labelMap)
Insert metadata file labels of a file into the database.