Class PersistConfig

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

    @ThreadSafe
    public class PersistConfig
    extends java.lang.Object
    implements PlanConfig
    The configuration of persisting a file.
    See Also:
    Serialized Form
    • Field Summary

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

      Constructors 
      Constructor Description
      PersistConfig​(java.lang.String filePath, long mountId, boolean overwrite, java.lang.String ufsPath)
      Creates a new instance of PersistConfig.
    • Constructor Detail

      • PersistConfig

        public PersistConfig​(java.lang.String filePath,
                             long mountId,
                             boolean overwrite,
                             java.lang.String ufsPath)
        Creates a new instance of PersistConfig.
        Parameters:
        filePath - the Alluxio path of the file to persist
        mountId - the mount ID for the UFS path to persist the file to
        overwrite - flag of overwriting the existing file in UFS or not
        ufsPath - the UFS path to persist the file to
    • Method Detail

      • getName

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

        public java.lang.String getFilePath()
        Returns:
        the file path
      • getMountId

        public long getMountId()
        Returns:
        the mount ID
      • getUfsPath

        public java.lang.String getUfsPath()
        Returns:
        the UFS path
      • isOverwrite

        public boolean isOverwrite()
        Returns:
        flag of overwriting the existing file in under storage or not
      • 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
      • affectedPaths

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