object Asn1TypeMapper
Maps a resolved Asn1Type to a Spark SQL DataType.
CHOICE becomes a StructType with a _tag StringType discriminator field and one
nullable field per alternative.
NAMED BIT STRING becomes StructType(_bytes: BinaryType, _namedBits: ArrayType(StringType)).
- Source
- Asn1TypeMapper.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Asn1TypeMapper
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- 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
- val BitStringBytesField: String
- val BitStringNamesField: String
- val ChoiceTagField: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 toSparkType(t: Asn1Type, registry: SchemaRegistry, currentModule: String, choiceTagField: String = ChoiceTagField, enumeratedAsInt: Boolean = false): DataType
Convert an ASN.1 type to a Spark DataType.
Convert an ASN.1 type to a Spark DataType.
- t
the (fully resolved) ASN.1 type
- registry
schema registry for resolving any remaining references
- currentModule
module name used when resolving unqualified references
- choiceTagField
field name used for the CHOICE discriminator (override via option)
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)