com.nicta.scoobi.impl.util

DistCache

Related Doc: package util

object DistCache

Facilitate making an object available to all tasks (mappers, reducers, etc). Use XStream to serialise objects to XML strings and then send out via Hadoop's distributed cache. Two APIs are provided for pushing and pulling objects.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DistCache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def cacheFiles(configuration: Configuration): Array[Path]

    returns

    the list of cache files

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. def localCacheFiles(configuration: Configuration): Array[Path]

    returns

    the list of local cache files

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

    Definition Classes
    AnyRef
  15. final def notify(): Unit

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

    Definition Classes
    AnyRef
  17. def pullFromPath[T](cacheFiles: Seq[Path], path: Path, configuration: Configuration = new Configuration, memoise: Boolean = false)(f: (FSDataInputStream) ⇒ T): Option[T]

  18. def pullObject[T](cacheFiles: Array[Path], path: Path): Option[T]

    pull an object from the cache by passing the cache paths directly

  19. def pullObject[T](configuration: Configuration, tag: String, memoise: Boolean = false): Option[T]

    Get an object that has been distributed so as to be available for tasks in the current job.

  20. def pullObjectDeserialise[T](configuration: Configuration, tag: String, deserialiser: (DataInputStream) ⇒ T, memoise: Boolean = false): Option[T]

    Get an object that has been distributed so as to be available for tasks in the current job.

  21. def pullPath[T](configuration: Configuration, path: Path, memoise: Boolean = false)(f: (FSDataInputStream) ⇒ T): Option[T]

    Pulling an object from a given path.

    Pulling an object from a given path.

    We first try paths from:

    • the local cache then
    • the distributed cache then
    • the passed path itself (this is useful if we are on the client)

    Once a FSDataInputStream is successfully opened, the function f can do its job to recreate the object:

    • use the Serialiser to deserialise the object
    • use a WireFormat to deserialise the object
  22. def pushObject[T](configuration: Configuration, obj: T, tag: String, check: Boolean = true): Path

    Distribute an object to be available for tasks in the current job using xstream

    Distribute an object to be available for tasks in the current job using xstream

    By default check right away if the object can be deserialised

  23. def pushObject[T](configuration: Configuration, obj: T, serialiser: (T, DataOutputStream) ⇒ Unit, tag: String): Path

    Distribute an object to be available for tasks in the current job

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

    Definition Classes
    AnyRef
  25. def tagToPath(configuration: Configuration, tag: String): Path

    Make a local filesystem path based on a 'tag' to temporarily store the serialised object.

  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped