Class MigrateConfig

  • All Implemented Interfaces:
    JobConfig, PlanConfig, java.io.Serializable

    @ThreadSafe
    public class MigrateConfig
    extends java.lang.Object
    implements PlanConfig
    Configuration for the migrate job. A migration can either be a copy or a move. See MigrateDefinition for detailed semantics.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      MigrateConfig​(java.lang.String source, java.lang.String dst, alluxio.client.WriteType writeType, boolean overwrite)  
    • Constructor Detail

      • MigrateConfig

        public MigrateConfig​(java.lang.String source,
                             java.lang.String dst,
                             alluxio.client.WriteType writeType,
                             boolean overwrite)
        Parameters:
        source - the source path
        dst - the destination path
        writeType - the Alluxio write type with which to write the migrated file; a null value means to use the default write type from the Alluxio configuration
        overwrite - whether an existing file should be overwritten; if the source and destination are directories, the contents of the directories will be merged with common files overwritten by the source
    • Method Detail

      • getSource

        public java.lang.String getSource()
        Returns:
        the source path
      • getDestination

        public java.lang.String getDestination()
        Returns:
        the destination path
      • getWriteType

        public alluxio.client.WriteType getWriteType()
        Returns:
        the writeType
      • isOverwrite

        public boolean isOverwrite()
        Returns:
        whether to overwrite a file at the destination if it exists
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface JobConfig
        Returns:
        the name of the job
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface JobConfig
        Returns:
        list of affected paths