@ThreadSafe public class LoadCliConfig extends java.lang.Object implements CliConfig
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<java.lang.String> |
affectedPaths() |
boolean |
equals(java.lang.Object obj) |
int |
getBatchSize()
Get batch size.
|
boolean |
getDirectCache()
Use direct cache or not.
|
java.util.Set<java.lang.String> |
getExcludedLocalityIds() |
java.util.Set<java.lang.String> |
getExcludedWorkerSet() |
java.lang.String |
getFilePath() |
JobSource |
getJobSource() |
java.util.Set<java.lang.String> |
getLocalityIds() |
java.lang.String |
getName() |
OperationType |
getOperationType() |
int |
getReplication() |
java.util.Set<java.lang.String> |
getWorkerSet() |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String NAME
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)
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 cachepublic java.lang.String getName()
public JobSource getJobSource()
getJobSource in interface CmdConfigpublic OperationType getOperationType()
getOperationType in interface CmdConfigpublic java.util.Collection<java.lang.String> affectedPaths()
affectedPaths in interface CmdConfigpublic java.lang.String getFilePath()
public int getReplication()
public java.util.Set<java.lang.String> getWorkerSet()
public java.util.Set<java.lang.String> getExcludedWorkerSet()
public java.util.Set<java.lang.String> getLocalityIds()
public java.util.Set<java.lang.String> getExcludedLocalityIds()
public int getBatchSize()
public boolean getDirectCache()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2024. All Rights Reserved.