Class

org.apache.spark.sql.types

MetadataWrapper

Related Doc: package types

Permalink

class MetadataWrapper extends AnyRef

Metadata wrapper allows access to private members of metadata

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetadataWrapper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetadataWrapper(m: Map[String, Any])

    Permalink

    Unsafe ctor to allow creation of Metadata using untyped map.

    Unsafe ctor to allow creation of Metadata using untyped map. Note: use this ctor only as a last resort solution, otherwise always prefer MetadataBuilder.

    m

    untyped map

    returns

    Metadata

  2. new MetadataWrapper(metadata: Metadata)

    Permalink

    metadata

    a Metadata instance

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(key: String): Any

    Permalink

    Retrieves the value which is associated with the given key.

    Retrieves the value which is associated with the given key. This method invokes the default method of the map if there is no mapping from the given key to a value. Unless overridden, the default method throws a NoSuchElementException.

    key

    the key

    returns

    the value associated with the given key, or the result of the map's default method, if none exists.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def contains(key: String): Boolean

    Permalink

    Tests whether this map contains a binding for a key.

    Tests whether this map contains a binding for a key.

    key

    the key

    returns

    true if there is a binding for key in this map, false otherwise.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get[T](key: String): T

    Permalink

    Returns the value associated with a key.

    Returns the value associated with a key.

    key

    the key value

    returns

    value containing the value associated with key in this map cast to the type provided

  12. def getAny(key: String): Option[Any]

    Permalink

    Optionally returns the value associated with a key.

    Optionally returns the value associated with a key.

    key

    the key value

    returns

    an option value containing the value associated with key in this map, or None if none exists.

  13. def getArray[T](key: String)(implicit arg0: ClassTag[T]): Array[T]

    Permalink

    Returns the value associated with a key.

    Returns the value associated with a key. Handles empty arrays serialized to Long instead of proper type.

    key

    the key value for an array

    returns

    value containing the value associated with key in this map cast to the array type provided

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def jsonValue: JValue

    Permalink

    Metadata Json Value

    Metadata Json Value

    returns

    Json Value

  18. val metadata: Metadata

    Permalink

    a Metadata instance

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def prettyJson: String

    Permalink

    Converts to its pretty json representation

    Converts to its pretty json representation

    returns

    pretty json string

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def underlyingMap: Map[String, Any]

    Permalink

    Get underlying untyped Map[String, Any].

    Get underlying untyped Map[String, Any]. Since Metadata.map val is private, this is the only way for us to get it

    returns

    underlying untyped Map[String, Any]

  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped