Packages

class FilePayload extends Payload

File implementation for the Payload trait.

Note

This implementation must not be used if the payload needs to be shuffled.

,

Do not set autoDelete to true in case you need to use the same file for multiple FilePayload objects.

Linear Supertypes
Payload, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FilePayload
  2. Payload
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FilePayload(file: File, autoDelete: Boolean = false)

    file

    The local file containing the partition's data.

    autoDelete

    Whether the file should be automatically deleted after it has been dismissed with a call to Payload.dismiss. Typically this will happen after the file has been uploaded to blobstore, if the file is not needed anymore by the library.

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. lazy val content: Array[Byte]

    The content in the partition.

    The content in the partition.

    Definition Classes
    FilePayloadPayload
  7. def dismiss(): Unit

    Notifies the Payload object that its content is not needed anymore.

    Notifies the Payload object that its content is not needed anymore. Implementations of the Payload trait can use this method to release resources.

    Definition Classes
    FilePayloadPayload
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(other: Any): Boolean

    Tests this FilePayload for equality with the given object.

    Tests this FilePayload for equality with the given object.

    other

    the reference object with which to compare

    returns

    true if this object is the same as the other argument; false otherwise.

    Definition Classes
    FilePayload → AnyRef → Any
  10. val file: File
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int

    Returns a hash code for this FilePayload.

    Returns a hash code for this FilePayload.

    Definition Classes
    FilePayload → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def length: Long

    Returns the size of the partition data.

    Returns the size of the partition data.

    Definition Classes
    FilePayloadPayload
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def nonEmpty: Boolean

    Returns true if the content is not empty.

    Returns true if the content is not empty.

    Definition Classes
    FilePayloadPayload
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String

    Returns the string representation of this FilePayload.

    Returns the string representation of this FilePayload.

    Definition Classes
    FilePayload → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Payload

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped