Package alluxio.job.plan.load
Class LoadConfig
- java.lang.Object
-
- alluxio.job.plan.load.LoadConfig
-
- All Implemented Interfaces:
JobConfig,PlanConfig,java.io.Serializable
@ThreadSafe public class LoadConfig extends java.lang.Object implements PlanConfig
The configuration of loading a file.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description LoadConfig(java.lang.String filePath, java.lang.Integer replication, java.util.Set<java.lang.String> workerSet, java.util.Set<java.lang.String> excludedWorkerSet, java.util.Set<java.lang.String> localityIds, java.util.Set<java.lang.String> excludedLocalityIds, java.lang.Boolean directCache)Deprecated.directCache param will be deprecated after cache request graduate from experimental
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)java.util.Set<java.lang.String>getExcludedLocalityIds()java.util.Set<java.lang.String>getExcludedWorkerSet()java.lang.StringgetFilePath()java.util.Set<java.lang.String>getLocalityIds()java.lang.StringgetName()intgetReplication()java.util.Set<java.lang.String>getWorkerSet()inthashCode()booleanisDirectCache()Deprecated.directCache will be deprecated after cache request graduate from experimentaljava.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoadConfig
@Deprecated public LoadConfig(java.lang.String filePath, java.lang.Integer replication, java.util.Set<java.lang.String> workerSet, java.util.Set<java.lang.String> excludedWorkerSet, java.util.Set<java.lang.String> localityIds, java.util.Set<java.lang.String> excludedLocalityIds, java.lang.Boolean directCache)Deprecated.directCache param will be deprecated after cache request graduate from experimental- Parameters:
filePath- the file pathreplication- the number of workers to store each block on, defaults to 1workerSet- the worker setexcludedWorkerSet- the excluded worker setlocalityIds- the locality identify setexcludedLocalityIds- the excluded locality identify setdirectCache- Use passive-cache or direct cache request
-
-
Method Detail
-
getFilePath
public java.lang.String getFilePath()
- Returns:
- the file path
-
getReplication
public int getReplication()
- Returns:
- the number of workers to store each block on
-
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
-
getWorkerSet
public java.util.Set<java.lang.String> getWorkerSet()
- Returns:
- worker set
-
getExcludedWorkerSet
public java.util.Set<java.lang.String> getExcludedWorkerSet()
- Returns:
- excluded worker set
-
getLocalityIds
public java.util.Set<java.lang.String> getLocalityIds()
- Returns:
- locality identify set
-
getExcludedLocalityIds
public java.util.Set<java.lang.String> getExcludedLocalityIds()
- Returns:
- excluded locality identify set
-
isDirectCache
@Deprecated public boolean isDirectCache()
Deprecated.directCache will be deprecated after cache request graduate from experimental- Returns:
- use direct cache request or not
-
-