sealed class Metadata extends Serializable
Metadata is a wrapper over Map[String, Any] that limits the value type to simple ones: Boolean, Long, Double, String, Metadata, Array[Boolean], Array[Long], Array[Double], Array[String], and Array[Metadata]. JSON is used for serialization.
The default constructor is private. User should use either MetadataBuilder or
Metadata.fromJson()
to create Metadata instances.
- Annotations
- @Stable()
- Source
- Metadata.scala
- Since
1.3.0
- Alphabetic
- By Inheritance
- Metadata
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Metadata()
No-arg constructor for kryo.
No-arg constructor for kryo.
- Attributes
- protected
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 contains(key: String): Boolean
Tests whether this Metadata contains a binding for a key.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
- Definition Classes
- Metadata → AnyRef → Any
- def getBoolean(key: String): Boolean
Gets a Boolean.
- def getBooleanArray(key: String): Array[Boolean]
Gets a Boolean array.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getDouble(key: String): Double
Gets a Double.
- def getDoubleArray(key: String): Array[Double]
Gets a Double array.
- def getLong(key: String): Long
Gets a Long.
- def getLongArray(key: String): Array[Long]
Gets a Long array.
- def getMetadata(key: String): Metadata
Gets a Metadata.
- def getMetadataArray(key: String): Array[Metadata]
Gets a Metadata array.
- def getString(key: String): String
Gets a String.
- def getStringArray(key: String): Array[String]
Gets a String array.
- def hashCode(): Int
- Definition Classes
- Metadata → AnyRef → Any
- def isEmpty: Boolean
Tests whether this Metadata is empty.
Tests whether this Metadata is empty.
- Since
4.0.0
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json: String
Converts to its JSON representation.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- Metadata → 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)