Class LoadCliConfig

  • All Implemented Interfaces:
    CliConfig, CmdConfig, java.io.Serializable

    @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.String NAME  
    • 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)  
    • 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 path
        batchSize - the batch size
        replication - the number of workers to store each block on, defaults to 1
        workerSet - the worker set
        excludedWorkerSet - the excluded worker set
        localityIds - the locality identify set
        excludedLocalityIds - the excluded locality identify set
        directCache - direct cache
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface CmdConfig
        Returns:
        name of the Cmd job
      • getOperationType

        public alluxio.grpc.OperationType getOperationType()
        Specified by:
        getOperationType in interface CmdConfig
        Returns:
        OperationType of the Cmd job
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface CmdConfig
        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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object