Class SimpleInputPort

    • Constructor Detail

      • SimpleInputPort

        protected SimpleInputPort​(String name,
                                  DataFormat format,
                                  EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted,
                                  boolean requiredInWorkingDirectory)
        Constructor.
        Parameters:
        name - name of the port
        format - format of the port
        compressionsAccepted - compression accepted
        requiredInWorkingDirectory - if data is required in working directory
      • SimpleInputPort

        protected SimpleInputPort​(String name,
                                  boolean list,
                                  DataFormat format,
                                  EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted,
                                  boolean requiredInWorkingDirectory)
        Constructor.
        Parameters:
        name - name of the port
        list - true if a list is excepted as port value
        format - format of the port
        compressionsAccepted - compression accepted
        requiredInWorkingDirectory - if data is required in working directory
    • Method Detail

      • getCompressionsAccepted

        public EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> getCompressionsAccepted()
        Description copied from interface: InputPort
        Test if the port accept a compressed input format.
        Specified by:
        getCompressionsAccepted in interface InputPort
        Returns:
        a set with the compression type allowed by the step for the port
      • isRequiredInWorkingDirectory

        public boolean isRequiredInWorkingDirectory()
        Description copied from interface: InputPort
        Test if input data of the port is required in the working directory. This method allow to declare the input data that need to be copied in the working directory before starting the step. As an example, it is used to copy files from a local file system to a distributed file system like HDFS. After that mapreduce jobs can be efficiency launched.
        Specified by:
        isRequiredInWorkingDirectory in interface InputPort
        Returns:
        true if the input data need to be copied in the working directory.