spark

Utils

object Utils extends AnyRef

Various utility methods used by Spark.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Utils
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def copyStream(in: InputStream, out: OutputStream, closeStreams: Boolean = false): Unit

  9. def createTempDir(root: String = ...): File

  10. def deleteRecursively(file: File): Unit

    Delete a file or directory and its contents recursively.

  11. def deserialize[T](bytes: Array[Byte], loader: ClassLoader): T

  12. def deserialize[T](bytes: Array[Byte]): T

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  17. def getHost: String

    Get current host

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def isAlpha(c: Char): Boolean

  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def localHostName(): String

    Get the local machine's hostname.

  22. def localIpAddress(): String

    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).

  23. def memoryBytesToString(size: Long): String

    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.

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def newDaemonCachedThreadPool(): ThreadPoolExecutor

    Wrapper over newCachedThreadPool.

  26. def newDaemonFixedThreadPool(nThreads: Int): ThreadPoolExecutor

    Wrapper over newFixedThreadPool.

  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def randomize[T](seq: TraversableOnce[T])(implicit arg0: ClassManifest[T]): Seq[T]

    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.

  30. def randomizeInPlace[T](arr: Array[T], rand: Random): Array[T]

    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.

  31. def serialize[T](o: T): Array[Byte]

  32. def splitWords(s: String): Seq[String]

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any