Package alluxio.job.plan.migrate
Class MigrateConfig
- java.lang.Object
-
- alluxio.job.plan.migrate.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. SeeMigrateDefinitionfor detailed semantics.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description MigrateConfig(java.lang.String source, java.lang.String dst, alluxio.client.WriteType writeType, boolean overwrite)
-
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.StringgetDestination()java.lang.StringgetName()java.lang.StringgetSource()alluxio.client.WriteTypegetWriteType()inthashCode()booleanisOverwrite()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MigrateConfig
public MigrateConfig(java.lang.String source, java.lang.String dst, alluxio.client.WriteType writeType, boolean overwrite)- Parameters:
source- the source pathdst- the destination pathwriteType- the Alluxio write type with which to write the migrated file; a null value means to use the default write type from the Alluxio configurationoverwrite- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceJobConfig- Returns:
- list of affected paths
-
-