Class FileIngester


  • @Component
    public class FileIngester
    extends java.lang.Object
    Imports a file from a remote url.

    For now only csv files are supported

    • Constructor Summary

      Constructors 
      Constructor Description
      FileIngester​(FileStoreDownload fileStoreDownload, org.molgenis.data.importer.ImportServiceFactory importServiceFactory, org.molgenis.data.file.FileRepositoryCollectionFactory fileRepositoryCollectionFactory, org.molgenis.data.file.model.FileMetaFactory fileMetaFactory, org.molgenis.data.DataService dataService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.molgenis.data.file.model.FileMeta ingest​(java.lang.String entityTypeId, java.lang.String url, java.lang.String loader, java.lang.String jobExecutionID, org.molgenis.jobs.Progress progress)
      Imports a csv file defined in the fileIngest entity
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileIngester

        public FileIngester​(FileStoreDownload fileStoreDownload,
                            org.molgenis.data.importer.ImportServiceFactory importServiceFactory,
                            org.molgenis.data.file.FileRepositoryCollectionFactory fileRepositoryCollectionFactory,
                            org.molgenis.data.file.model.FileMetaFactory fileMetaFactory,
                            org.molgenis.data.DataService dataService)
    • Method Detail

      • ingest

        public org.molgenis.data.file.model.FileMeta ingest​(java.lang.String entityTypeId,
                                                            java.lang.String url,
                                                            java.lang.String loader,
                                                            java.lang.String jobExecutionID,
                                                            org.molgenis.jobs.Progress progress)
        Imports a csv file defined in the fileIngest entity
        See Also:
        FileIngestJobExecutionMetadata