class HdfsStorageHandler extends StorageHandler
HDFS Filesystem Handler
- Alphabetic
- By Inheritance
- HdfsStorageHandler
- StorageHandler
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
blockSize(path: Path): Long
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val conf: Configuration
-
def
contentSummary(path: Path): ContentSummary
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
copyFromLocal(source: Path, dest: Path): Unit
Copy file from local filesystem to target file system
Copy file from local filesystem to target file system
- source
Local file path
- dest
destination file path
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
delete(path: Path): Boolean
delete file (skip trash)
delete file (skip trash)
- path
: Absolute path of file to delete
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exists(path: Path): Boolean
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val fs: FileSystem
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getOutputStream(path: Path): FSDataOutputStream
Gets the outputstream given a path
Gets the outputstream given a path
- path
: path
- returns
FSDataOutputStream
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lastModified(path: Path): Timestamp
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
list(path: Path, extension: String, since: LocalDateTime, recursive: Boolean): List[Path]
List all files in folder
List all files in folder
- path
Absolute folder path
- extension
: Files should end with this string. To list all files, simply provide an empty string
- since
Minimum modification time of liste files. To list all files, simply provide the beginning of all times
- returns
List of Path
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
listDirectories(path: Path): List[Path]
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
lockAcquisitionPollTime: FiniteDuration
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
lockRefreshPollTime: FiniteDuration
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
def
mkdirs(path: Path): Boolean
Create folder if it does not exsit including any intermediary non existent folder
Create folder if it does not exsit including any intermediary non existent folder
- path
Absolute path of folder to create
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
move(path: Path, dest: Path): Boolean
Move file
Move file
- path
source path (file or folder)
- dest
destination path (file or folder)
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
moveFromLocal(source: Path, dest: Path): Unit
Move file from local filesystem to target file system If source FS Scheme is not "file" then issue a regular move
Move file from local filesystem to target file system If source FS Scheme is not "file" then issue a regular move
- source
Local file path
- dest
destination file path
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val normalizedFileSystem: Option[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
read(path: Path): String
Read a UTF-8 text file into a string used to load yml configuration files
Read a UTF-8 text file into a string used to load yml configuration files
- path
: Absolute file path
- returns
file content as a string
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
spaceConsumed(path: Path): Long
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
touch(path: Path): Try[Unit]
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
touchz(path: Path): Try[Unit]
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
unzip(sourceFile: Path, targetDir: Path): Try[Unit]
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
write(data: String, path: Path): Unit
Write a string to a UTF-8 text file.
Write a string to a UTF-8 text file. Used for yml configuration files.
- data
file content as a string
- path
: Absolute file path
- Definition Classes
- HdfsStorageHandler → StorageHandler
-
def
writeBinary(data: Array[Byte], path: Path): Unit
Write bytes to binary file.
Write bytes to binary file. Used for zip / gzip input test files.
- data
file content as a string
- path
: Absolute file path