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.
- Alphabetic
- By Inheritance
- Payload
- Serializable
- Wrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
autoDeletetotruein case you need to use the same file for multiple Payload objects.
- 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.
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def content: Array[Byte]
Returns the content of the Payload object.
- def dismiss(): Unit
Notifies the Payload object that its content is not needed anymore.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- Wrapper → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- Wrapper → AnyRef → Any
- val impl: blobstore.Payload
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Long
Returns the size of the partition data.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
Returns true if the content is not empty.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Wrapper → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)