All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.starlake.job.load.LoadStrategy.scala Maven / Gradle / Ivy

package ai.starlake.job.load

import ai.starlake.schema.handlers.{FileInfo, StorageHandler}
import org.apache.hadoop.fs.Path

import java.time.LocalDateTime

trait LoadStrategy {

  /** List all files in folder
    *
    * @param fs
    *   FileSystem
    * @param path
    *   Absolute folder path
    * @param extension
    *   Files should end with this string. To list all files, simply provide an empty string
    * @param since
    *   Minimum modification time of list files. To list all files, simply provide the beginning of
    *   all times
    * @param recursive
    *   List files recursively
    * @return
    *   List of Path
    */
  def list(
    storageHanlder: StorageHandler,
    path: Path,
    extension: String = "",
    since: LocalDateTime = LocalDateTime.MIN,
    recursive: Boolean
  ): List[FileInfo]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy