object BinaryFileReader
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BinaryFileReader
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
read(path: String, recursive: Boolean, spark: SparkSession, sampleRatio: Double = 1, inspectZip: Boolean = true, seed: Long = 0L): DataFrame
Read the directory of binary files from the local or remote source
Read the directory of binary files from the local or remote source
- path
Path to the directory
- recursive
Recursive search flag
- returns
DataFrame with a single column of "binaryFiles", see "columnSchema" for details
-
def
readFromPaths(df: DataFrame, pathCol: String, bytesCol: String, concurrency: Int, timeout: Int): DataFrame
- df
the dataframe containing the paths
- pathCol
the column name of the paths to read
- bytesCol
the column name of the resulting bytes column
- concurrency
the number of concurrent reads
- timeout
in milliseconds
- def recursePath(fileSystem: FileSystem, path: Path, pathFilter: (FileStatus) ⇒ Boolean): Array[Path]
-
def
stream(path: String, spark: SparkSession, sampleRatio: Double = 1, inspectZip: Boolean = true, seed: Long = 0L): DataFrame
Read the directory of binary files from the local or remote source
Read the directory of binary files from the local or remote source
- path
Path to the directory
- returns
DataFrame with a single column of "binaryFiles", see "columnSchema" for details