object TypedEncoder extends Serializable
- Alphabetic
- By Inheritance
- TypedEncoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- 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
- def apply[T](implicit arg0: TypedEncoder[T]): TypedEncoder[T]
- implicit def arrayEncoder[T](implicit arg0: ClassTag[T], i0: Lazy[RecordFieldEncoder[T]]): TypedEncoder[Array[T]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val bigDecimalEncoder: TypedEncoder[BigDecimal]
- implicit val booleanEncoder: TypedEncoder[Boolean]
- implicit val byteEncoder: TypedEncoder[Byte]
- implicit val charEncoder: TypedEncoder[Char]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def collectionEncoder[C[X] <: Seq[X], T](implicit i0: Lazy[RecordFieldEncoder[T]], i1: ClassTag[C[T]]): TypedEncoder[C[T]]
- implicit val doubleEncoder: TypedEncoder[Double]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit val floatEncoder: TypedEncoder[Float]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit val intEncoder: TypedEncoder[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val javaBigDecimalEncoder: TypedEncoder[BigDecimal]
- implicit val longEncoder: TypedEncoder[Long]
- implicit def mapEncoder[A, B](implicit arg0: NotCatalystNullable[A], i0: Lazy[RecordFieldEncoder[A]], i1: Lazy[RecordFieldEncoder[B]]): TypedEncoder[Map[A, B]]
- A
the key type
- B
the value type
- i0
the keys encoder
- i1
the values encoder
- 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()
- implicit def optionEncoder[A](implicit underlying: TypedEncoder[A]): TypedEncoder[Option[A]]
- implicit val shortEncoder: TypedEncoder[Short]
- implicit val sqlDate: TypedEncoder[SQLDate]
- implicit val sqlTimestamp: TypedEncoder[SQLTimestamp]
- implicit val stringEncoder: TypedEncoder[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit val timeDurationEncoder: TypedEncoder[Duration]
- implicit val timeDurationInjection: Injection[Duration, Long]
DayTimeIntervalType and YearMonthIntervalType in Spark 3.2.0.
DayTimeIntervalType and YearMonthIntervalType in Spark 3.2.0. We maintain Spark 3.x cross compilation and handle Duration and Period as an injections to be compatible with Spark versions < 3.2 See * https://github.com/apache/spark/blob/v3.2.0/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/IntervalUtils.scala#L1031-L1047 * https://github.com/apache/spark/blob/v3.2.0/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/IntervalUtils.scala#L1075-L1087
- implicit val timeInstant: TypedEncoder[Instant]
java.time Encoders, Spark uses https://github.com/apache/spark/blob/v3.2.0/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala for encoding / decoding.
- implicit val timePeriodEncoder: TypedEncoder[Period]
- implicit val timePeriodInjection: Injection[Period, Int]
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def usingDerivation[F, G <: HList, H <: HList](implicit i0: Aux[F, G], i1: Aux[G, H], i2: IsHCons[H], i3: Lazy[RecordEncoderFields[H]], i4: Lazy[NewInstanceExprs[G]], i5: ClassTag[F]): TypedEncoder[F]
Encodes things as records if there is no Injection defined
- implicit def usingInjection[A, B](implicit arg0: ClassTag[A], inj: Injection[A, B], trb: TypedEncoder[B]): TypedEncoder[A]
Encodes things using injection if there is one defined
- implicit def usingUserDefinedType[A >: Null](implicit arg0: UserDefinedType[A], arg1: ClassTag[A]): TypedEncoder[A]
Encodes things using a Spark SQL's User Defined Type (UDT) if there is one defined in implicit
- 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()
- object injections extends InjectionEnum