Packages

class Payload extends Wrapper[blobstore.Payload] with Serializable

A wrapper on encoded partition data.

In the future it may contain metadata in addition to the actual data.

Note

This is a Java friendly wrapper of com.here.platform.data.processing.blobstore.Payload.

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

Instance Constructors

  1. new Payload(file: File, autoDelete: Boolean)

    Constructs a Payload object from a local file.

    Constructs a Payload object from a local file.

    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.

    Note

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

  2. new Payload(file: File)

    Constructs a Payload object from a local file.

    Constructs a Payload object from a local file.

    file

    The local file containing the partition's data.

  3. new Payload(content: Array[Byte])

    Constructs a Payload object from its content.

    Constructs a Payload object from its content.

    content

    The data of the partition.

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. def content: Array[Byte]

    Returns the content of the Payload object.

  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 class can use this method to release resources.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(o: Any): Boolean
    Definition Classes
    Wrapper → AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    Wrapper → AnyRef → Any
  13. val impl: blobstore.Payload
    Definition Classes
    PayloadWrapper
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def length: Long

    Returns the size of the partition data.

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

    Returns true if the content is not empty.

  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
    Definition Classes
    Wrapper → 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 Serializable

Inherited from Serializable

Inherited from Wrapper[blobstore.Payload]

Inherited from AnyRef

Inherited from Any

Ungrouped