Class

com.salesforce.op.utils.spark.RichStructType

RichStructType

Related Doc: package RichStructType

Permalink

implicit final class RichStructType extends AnyVal

Enrichment functions for StructType (i.e. Dataset / Dataframe schema)

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

Instance Constructors

  1. new RichStructType(st: StructType)

    Permalink

    st

    StructType

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def findField(query: String, ignoreCase: Boolean = true): StructField

    Permalink

    Find a similar field name in struct schema schema

    Find a similar field name in struct schema schema

    query

    approximate field name query

    ignoreCase

    should ignore case when comparing field names

    returns

    field names approximately matching the requested field name

    Exceptions thrown

    IllegalArgumentException if no unique or multiple matching field were found

  6. def findFields(query: String, ignoreCase: Boolean = true): Seq[StructField]

    Permalink

    Find similar field names in struct schema schema

    Find similar field names in struct schema schema

    query

    approximate field name query

    ignoreCase

    should ignore case when comparing field names

    returns

    field names approximately matching the requested field name

  7. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. val st: StructType

    Permalink

    StructType

  10. def toOpVectorMetadata(fieldName: String): OpVectorMetadata

    Permalink

    Create OpVectorMetadata from a field name

    Create OpVectorMetadata from a field name

    fieldName

    field name

    returns

    OpVectorMetadata for a field

    Exceptions thrown

    IllegalArgumentException if a field with the given name does not exist

  11. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped