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()
- Since
1.3.0
- Alphabetic
- By Inheritance
- Metadata
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @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
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getBoolean(key: String): Boolean
Gets a Boolean.
-
def
getBooleanArray(key: String): Array[Boolean]
Gets a Boolean array.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
-
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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Metadata → 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()