Package alluxio.job.cmd.load
Class LoadCliConfig
- java.lang.Object
-
- alluxio.job.cmd.load.LoadCliConfig
-
@ThreadSafe public class LoadCliConfig extends java.lang.Object implements CliConfig
A config for a LoadCli job.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description LoadCliConfig(java.lang.String filePath, java.lang.Integer batchSize, 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, boolean directCache)
-
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)intgetBatchSize()Get batch size.booleangetDirectCache()Use direct cache or not.java.util.Set<java.lang.String>getExcludedLocalityIds()java.util.Set<java.lang.String>getExcludedWorkerSet()java.lang.StringgetFilePath()JobSourcegetJobSource()java.util.Set<java.lang.String>getLocalityIds()java.lang.StringgetName()alluxio.grpc.OperationTypegetOperationType()intgetReplication()java.util.Set<java.lang.String>getWorkerSet()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoadCliConfig
public LoadCliConfig(java.lang.String filePath, java.lang.Integer batchSize, 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, boolean directCache)- Parameters:
filePath- the file pathbatchSize- the batch sizereplication- 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- direct cache
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getJobSource
public JobSource getJobSource()
- Specified by:
getJobSourcein interfaceCmdConfig- Returns:
- JobSource of the Cmd job
-
getOperationType
public alluxio.grpc.OperationType getOperationType()
- Specified by:
getOperationTypein interfaceCmdConfig- Returns:
- OperationType of the Cmd job
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceCmdConfig- Returns:
- list of affected paths
-
getFilePath
public java.lang.String getFilePath()
- Returns:
- file path
-
getReplication
public int getReplication()
- Returns:
- replication
-
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
-
getBatchSize
public int getBatchSize()
Get batch size.- Returns:
- batch size
-
getDirectCache
public boolean getDirectCache()
Use direct cache or not.- Returns:
- boolean flag
-
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
-
-