Package alluxio.job.plan.persist
Class PersistConfig
- java.lang.Object
-
- alluxio.job.plan.persist.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.StringNAME
-
Constructor Summary
Constructors Constructor Description PersistConfig(java.lang.String filePath, long mountId, boolean overwrite, java.lang.String ufsPath)Creates a new instance ofPersistConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)java.lang.StringgetFilePath()longgetMountId()java.lang.StringgetName()java.lang.StringgetUfsPath()inthashCode()booleanisOverwrite()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistConfig
public PersistConfig(java.lang.String filePath, long mountId, boolean overwrite, java.lang.String ufsPath)Creates a new instance ofPersistConfig.- Parameters:
filePath- the Alluxio path of the file to persistmountId- the mount ID for the UFS path to persist the file tooverwrite- flag of overwriting the existing file in UFS or notufsPath- the UFS path to persist the file to
-
-
Method Detail
-
getName
public java.lang.String getName()
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceJobConfig- Returns:
- list of affected paths
-
-