Delete a file or directory and its contents recursively.
Get current host
Get the local machine's hostname.
Get the local host's IP address in dotted-quad format (e.
Get the local host's IP address in dotted-quad format (e.g. 1.2.3.4).
Use unit suffixes (Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte) in order to reduce the number of digits to four or less.
Use unit suffixes (Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte) in order to reduce the number of digits to four or less. For example, 4,000,000 is returned as 4MB.
Wrapper over newCachedThreadPool.
Wrapper over newFixedThreadPool.
Shuffle the elements of a collection into a random order, returning the result in a new collection.
Shuffle the elements of a collection into a random order, returning the result in a new collection. Unlike scala.util.Random.shuffle, this method uses a local random number generator, avoiding inter-thread contention.
Shuffle the elements of an array into a random order, modifying the original array.
Shuffle the elements of an array into a random order, modifying the original array. Returns the original array.
Various utility methods used by Spark.