package utils
- Alphabetic
- Public
- All
Type Members
- class CloseableIterator[+T] extends Iterator[T]
- class ContextObjectInputStream extends ObjectInputStream
- trait ParamEquality[T] extends Param[T]
-
trait
ParamGroup extends Serializable
Derive from this to create an encapsulated subset of params that can be integrated into a parent ParamsStringBuilder with appendParamsSet, Useful for encapsulating Params into smaller subsets.
-
class
ParamsStringBuilder extends Serializable
Helper class for converting individual typed parameters to a single long string for passing to native libraries.
Helper class for converting individual typed parameters to a single long string for passing to native libraries.
Example: new ParamsStringBuilder(prefix = "--", delimiter = "=") .append("--first_param=a") .appendParamValueIfNotThere("first_param", Option("a2")) .appendParamValueIfNotThere("second_param", Option("b")) .appendParamValueIfNotThere("third_param", None) .result
result == "--first_param=a --second_param=b"
This utility mimics a traditional StringBuilder, where you append parts and ask for the final result() at the end. Each parameter appended is tracked and can be compared against the current string, to both avoid duplicates and provide an override mechanism. The first param added is considered the primary one to not be replaced.
Use 'append' to add an unchecked string directly to end of current string.
Use ParamsSet to create encapsulated subsets of params that can be incorporated into the parent ParamsStringBuilder.
There is also integration with the SparkML Params system. Construct with a parent Params object and use the methods with Param arguments.
- class StopWatch extends AnyRef
Value Members
- object AsyncUtils
- object BreezeUtils
-
object
CastUtilities
Utilities for casting values.
- object ClusterUtil
- object FaultToleranceUtils
-
object
JarLoadingUtils
Contains logic for loading classes.
- object ModelEquality
- object OsUtils