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
totrue
in case you need to use the same file for multiple FilePayload objects.
- Alphabetic
- By Inheritance
- FilePayload
- Payload
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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( ... ) @native()
-
lazy val
content: Array[Byte]
The content in the partition.
The content in the partition.
- Definition Classes
- FilePayload → Payload
-
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
- FilePayload → Payload
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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 theother
argument;false
otherwise.
- Definition Classes
- FilePayload → AnyRef → Any
- val file: File
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
Returns a hash code for this FilePayload.
Returns a hash code for this FilePayload.
- Definition Classes
- FilePayload → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
length: Long
Returns the size of the partition data.
Returns the size of the partition data.
- Definition Classes
- FilePayload → Payload
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty: Boolean
Returns true if the content is not empty.
Returns true if the content is not empty.
- Definition Classes
- FilePayload → Payload
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Returns the string representation of this FilePayload.
Returns the string representation of this FilePayload.
- Definition Classes
- FilePayload → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()