object Encoders
- Alphabetic
 - By Inheritance
 
- Encoders
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - All
 
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
      
      
        BINARY: Encoder[Array[Byte]]
      
      
      
An encoder for arrays of bytes.
An encoder for arrays of bytes.
- Since
 1.6.1
 - 
      
      
      
        
      
    
      
        
        def
      
      
        BOOLEAN: Encoder[Boolean]
      
      
      
An encoder for nullable boolean type.
An encoder for nullable boolean type. The Scala primitive encoder is available as scalaBoolean.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        BYTE: Encoder[Byte]
      
      
      
An encoder for nullable byte type.
An encoder for nullable byte type. The Scala primitive encoder is available as scalaByte.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        DATE: Encoder[Date]
      
      
      
An encoder for nullable date type.
An encoder for nullable date type.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        DECIMAL: Encoder[BigDecimal]
      
      
      
An encoder for nullable decimal type.
An encoder for nullable decimal type.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        DOUBLE: Encoder[Double]
      
      
      
An encoder for nullable double type.
An encoder for nullable double type. The Scala primitive encoder is available as scalaDouble.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        DURATION: Encoder[Duration]
      
      
      
Creates an encoder that serializes instances of the
java.time.Durationclass to the internal representation of nullable Catalyst's DayTimeIntervalType.Creates an encoder that serializes instances of the
java.time.Durationclass to the internal representation of nullable Catalyst's DayTimeIntervalType.- Since
 3.2.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        FLOAT: Encoder[Float]
      
      
      
An encoder for nullable float type.
An encoder for nullable float type. The Scala primitive encoder is available as scalaFloat.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        INSTANT: Encoder[Instant]
      
      
      
Creates an encoder that serializes instances of the
java.time.Instantclass to the internal representation of nullable Catalyst's TimestampType.Creates an encoder that serializes instances of the
java.time.Instantclass to the internal representation of nullable Catalyst's TimestampType.- Since
 3.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        INT: Encoder[Integer]
      
      
      
An encoder for nullable int type.
An encoder for nullable int type. The Scala primitive encoder is available as scalaInt.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        LOCALDATE: Encoder[LocalDate]
      
      
      
Creates an encoder that serializes instances of the
java.time.LocalDateclass to the internal representation of nullable Catalyst's DateType.Creates an encoder that serializes instances of the
java.time.LocalDateclass to the internal representation of nullable Catalyst's DateType.- Since
 3.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        LOCALDATETIME: Encoder[LocalDateTime]
      
      
      
Creates an encoder that serializes instances of the
java.time.LocalDateTimeclass to the internal representation of nullable Catalyst's TimestampNTZType.Creates an encoder that serializes instances of the
java.time.LocalDateTimeclass to the internal representation of nullable Catalyst's TimestampNTZType.- Since
 3.4.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        LONG: Encoder[Long]
      
      
      
An encoder for nullable long type.
An encoder for nullable long type. The Scala primitive encoder is available as scalaLong.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        PERIOD: Encoder[Period]
      
      
      
Creates an encoder that serializes instances of the
java.time.Periodclass to the internal representation of nullable Catalyst's YearMonthIntervalType.Creates an encoder that serializes instances of the
java.time.Periodclass to the internal representation of nullable Catalyst's YearMonthIntervalType.- Since
 3.2.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        SHORT: Encoder[Short]
      
      
      
An encoder for nullable short type.
An encoder for nullable short type. The Scala primitive encoder is available as scalaShort.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        STRING: Encoder[String]
      
      
      
An encoder for nullable string type.
An encoder for nullable string type.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        TIMESTAMP: Encoder[Timestamp]
      
      
      
An encoder for nullable timestamp type.
An encoder for nullable timestamp type.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        bean[T](beanClass: Class[T]): Encoder[T]
      
      
      
Creates an encoder for Java Bean of type T.
Creates an encoder for Java Bean of type T.
T must be publicly accessible.
supported types for java bean field:
- primitive types: boolean, int, double, etc.
 - boxed types: Boolean, Integer, Double, etc.
 - String
 - java.math.BigDecimal, java.math.BigInteger
 - time related: java.sql.Date, java.sql.Timestamp, java.time.LocalDate, java.time.Instant
 - collection types: array, java.util.List, and map
 - nested java bean.
 
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( ... ) @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws( classOf[java.lang.Throwable] )
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @native()
 
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      
- Definition Classes
 - Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        javaSerialization[T](clazz: Class[T]): Encoder[T]
      
      
      
Creates an encoder that serializes objects of type T using generic Java serialization.
Creates an encoder that serializes objects of type T using generic Java serialization. This encoder maps T into a single byte array (binary) field.
T must be publicly accessible.
- Since
 1.6.0
- Note
 This is extremely inefficient and should only be used as the last resort.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        javaSerialization[T](implicit arg0: ClassTag[T]): Encoder[T]
      
      
      
(Scala-specific) Creates an encoder that serializes objects of type T using generic Java serialization.
(Scala-specific) Creates an encoder that serializes objects of type T using generic Java serialization. This encoder maps T into a single byte array (binary) field.
T must be publicly accessible.
- Since
 1.6.0
- Note
 This is extremely inefficient and should only be used as the last resort.
 - 
      
      
      
        
      
    
      
        
        def
      
      
        kryo[T](clazz: Class[T]): Encoder[T]
      
      
      
Creates an encoder that serializes objects of type T using Kryo.
Creates an encoder that serializes objects of type T using Kryo. This encoder maps T into a single byte array (binary) field.
T must be publicly accessible.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        kryo[T](implicit arg0: ClassTag[T]): Encoder[T]
      
      
      
(Scala-specific) Creates an encoder that serializes objects of type T using Kryo.
(Scala-specific) Creates an encoder that serializes objects of type T using Kryo. This encoder maps T into a single byte array (binary) field.
T must be publicly accessible.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        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()
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        product[T <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]
      
      
      
An encoder for Scala's product type (tuples, case classes, etc).
An encoder for Scala's product type (tuples, case classes, etc).
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        row(schema: StructType): Encoder[Row]
      
      
      
Creates a Row encoder for schema
schema.Creates a Row encoder for schema
schema.- Since
 3.5.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaBoolean: Encoder[Boolean]
      
      
      
An encoder for Scala's primitive boolean type.
An encoder for Scala's primitive boolean type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaByte: Encoder[Byte]
      
      
      
An encoder for Scala's primitive byte type.
An encoder for Scala's primitive byte type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaDouble: Encoder[Double]
      
      
      
An encoder for Scala's primitive double type.
An encoder for Scala's primitive double type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaFloat: Encoder[Float]
      
      
      
An encoder for Scala's primitive float type.
An encoder for Scala's primitive float type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaInt: Encoder[Int]
      
      
      
An encoder for Scala's primitive int type.
An encoder for Scala's primitive int type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaLong: Encoder[Long]
      
      
      
An encoder for Scala's primitive long type.
An encoder for Scala's primitive long type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        scalaShort: Encoder[Short]
      
      
      
An encoder for Scala's primitive short type.
An encoder for Scala's primitive short type.
- Since
 2.0.0
 - 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      
- Definition Classes
 - AnyRef
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        toString(): String
      
      
      
- Definition Classes
 - AnyRef → Any
 
 - 
      
      
      
        
      
    
      
        
        def
      
      
        tuple[T1, T2, T3, T4, T5](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3], e4: Encoder[T4], e5: Encoder[T5]): Encoder[(T1, T2, T3, T4, T5)]
      
      
      
An encoder for 5-ary tuples.
An encoder for 5-ary tuples.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        tuple[T1, T2, T3, T4](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3], e4: Encoder[T4]): Encoder[(T1, T2, T3, T4)]
      
      
      
An encoder for 4-ary tuples.
An encoder for 4-ary tuples.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        tuple[T1, T2, T3](e1: Encoder[T1], e2: Encoder[T2], e3: Encoder[T3]): Encoder[(T1, T2, T3)]
      
      
      
An encoder for 3-ary tuples.
An encoder for 3-ary tuples.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        
        def
      
      
        tuple[T1, T2](e1: Encoder[T1], e2: Encoder[T2]): Encoder[(T1, T2)]
      
      
      
An encoder for 2-ary tuples.
An encoder for 2-ary tuples.
- Since
 1.6.0
 - 
      
      
      
        
      
    
      
        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()