Class SimpleInputPort
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.AbstractPort
-
- fr.ens.biologie.genomique.eoulsan.core.SimpleInputPort
-
- All Implemented Interfaces:
InputPort,Port,Serializable
public class SimpleInputPort extends AbstractPort implements InputPort, Serializable
This class define an input port of a step.- Since:
- 2.0
- Author:
- Laurent Jourdren
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleInputPort(String name, boolean list, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory)Constructor.protectedSimpleInputPort(String name, DataFormat format, EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> compressionsAccepted, boolean requiredInWorkingDirectory)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType>getCompressionsAccepted()Test if the port accept a compressed input format.booleanisRequiredInWorkingDirectory()Test if input data of the port is required in the working directory.StringtoString()-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.core.AbstractPort
getFormat, getLinkedSteps, getName, isList
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.ens.biologie.genomique.eoulsan.core.Port
getFormat, getLinkedSteps, getName, isList
-
-
-
-
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 portformat- format of the portcompressionsAccepted- compression acceptedrequiredInWorkingDirectory- 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 portlist- true if a list is excepted as port valueformat- format of the portcompressionsAccepted- compression acceptedrequiredInWorkingDirectory- if data is required in working directory
-
-
Method Detail
-
getCompressionsAccepted
public EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> getCompressionsAccepted()
Description copied from interface:InputPortTest if the port accept a compressed input format.- Specified by:
getCompressionsAcceptedin interfaceInputPort- Returns:
- a set with the compression type allowed by the step for the port
-
isRequiredInWorkingDirectory
public boolean isRequiredInWorkingDirectory()
Description copied from interface:InputPortTest 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:
isRequiredInWorkingDirectoryin interfaceInputPort- Returns:
- true if the input data need to be copied in the working directory.
-
-