object PartitionDiscoveryUtils
- Alphabetic
- By Inheritance
- PartitionDiscoveryUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
columnAndValuesAtDepth(files: List[Path], depth: Int): Either[String, List[(String, String)]]
Discovers the column name and value of a given path at a given depth.
Discovers the column name and value of a given path at a given depth.
- returns
a Left with an error message if something goes wrong during the value discovery. a Right with a list of column name and column value, this does not check that the layout is correct just that all the sub-folders have a compatible "name" (i.e. in the form of col=value)
-
def
discoverPartitions(fs: FileSystem)(basePath: Path): Either[String, List[PartitionColumnValues]]
Discovers all the partitions columns and values of a given basePath
Discovers all the partitions columns and values of a given basePath
- returns
a Left with an error message if something goes wrong during the partition discovery. a Right with a list of PartitionColumnValues. The list is ordered from the closest to the basePath column to the farthest. PartitionColumnValues are sorted alphabetically.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
fileDepth(fs: FileSystem)(basePath: Path, currentPath: Path, currDepth: Int = 0): Int
Calculates the depth of the currentPath relative ot basePath
Calculates the depth of the currentPath relative ot basePath
- Annotations
- @tailrec()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getColumnAndValue(p: Path): Either[String, (String, String)]
Given a path returns column name and value of the leaf of that path, if any present enclosed in a Right.
Given a path returns column name and value of the leaf of that path, if any present enclosed in a Right. If any error occurs, the returned value will be a Left enclosing an error description
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
listDirectories(fs: FileSystem)(path: Path): List[Path]
Recursively lists all the subdirectories in the input directory *
-
def
listFiles(fs: FileSystem)(path: Path): List[Path]
Recursively lists all the files in the input directory *
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.