Class LoadConfig

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • 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
    • 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 path
        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 - 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:
        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
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface JobConfig
        Returns:
        the name of the job
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface JobConfig
        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