robokudo.descriptors.analysis_engines.filewriter_from_storage

Analysis engine for writing stored data to filesystem.

This module provides an analysis engine that demonstrates how to read data from MongoDB storage and write it to the local filesystem. It implements a simple pipeline for data transfer between storage systems.

The pipeline implements the following functionality:

  • Reading stored data from MongoDB

  • Image preprocessing

  • Writing data to local filesystem

Note

This engine requires a properly configured MongoDB database with stored data. The data will be written to the local filesystem in a format compatible with the FileReader interface.

Classes

AnalysisEngine

Analysis engine for transferring data from MongoDB to filesystem.

Module Contents

class robokudo.descriptors.analysis_engines.filewriter_from_storage.AnalysisEngine

Bases: robokudo.analysis_engine.AnalysisEngineInterface

Analysis engine for transferring data from MongoDB to filesystem.

This class implements a pipeline that reads data from MongoDB storage and writes it to the local filesystem. It is designed to facilitate data transfer between different storage systems.

The pipeline includes:

  • Collection reader for accessing MongoDB data

  • Image preprocessing for data preparation

  • File writer for saving data to filesystem

Note

The pipeline is configured to read data only once (no looping) to avoid duplicate files in the filesystem.

name()

Get the name of the analysis engine.

Returns:

The name identifier of this analysis engine

Return type:

str

implementation()

Create a pipeline for writing MongoDB data to filesystem.

This method constructs a processing pipeline that reads data from MongoDB and writes it to the local filesystem. The pipeline is configured to perform a single pass over the stored data.

Returns:

The configured pipeline for data transfer

Return type:

robokudo.pipeline.Pipeline