trait JavaCoders extends CoderGrammar with JavaBeanCoders
- Alphabetic
- By Inheritance
- JavaCoders
- JavaBeanCoders
- CoderGrammar
- 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 aggregate[T](implicit arg0: Coder[T]): Coder[Iterable[T]]
- Definition Classes
- CoderGrammar
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def beam[T](beam: org.apache.beam.sdk.coders.Coder[T]): Coder[T]
- Definition Classes
- CoderGrammar
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def coderJEnum[E <: Enum[E]](implicit arg0: ClassTag[E]): Coder[E]
- def disjunction[T, Id](typeName: String, coder: Map[Id, Coder[T]])(id: (T) => Id)(implicit arg0: Coder[Id]): Coder[T]
- Definition Classes
- CoderGrammar
- 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])
- 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
- implicit def jArrayListCoder[T](implicit c: Coder[T]): Coder[ArrayList[T]]
- implicit lazy val jBigDecimalCoder: Coder[BigDecimal]
- implicit lazy val jBigIntegerCoder: Coder[BigInteger]
- implicit lazy val jBitSetCoder: Coder[BitSet]
- implicit lazy val jBooleanCoder: Coder[Boolean]
- implicit lazy val jByteCoder: Coder[Byte]
- implicit lazy val jDoubleCoder: Coder[Double]
- implicit lazy val jDurationCoder: Coder[Duration]
- implicit lazy val jFloatCoder: Coder[Float]
- implicit lazy val jInstantCoder: Coder[Instant]
- implicit lazy val jIntegerCoder: Coder[Integer]
- implicit def jIterableCoder[T](implicit c: Coder[T]): Coder[Iterable[T]]
- implicit def jListCoder[T](implicit c: Coder[T]): Coder[List[T]]
- implicit lazy val jLocalDateCoder: Coder[LocalDate]
- implicit lazy val jLocalDateTimeCoder: Coder[LocalDateTime]
- implicit lazy val jLocalTimeCoder: Coder[LocalTime]
- implicit lazy val jLongCoder: Coder[Long]
- implicit def jMapCoder[K, V](implicit ck: Coder[K], cv: Coder[V]): Coder[Map[K, V]]
- implicit lazy val jPeriodCoder: Coder[Period]
- implicit lazy val jShortCoder: Coder[Short]
- implicit lazy val jSqlDate: Coder[Date]
- implicit lazy val jSqlTime: Coder[Time]
- implicit lazy val jSqlTimestamp: Coder[Timestamp]
- implicit def jTryCoder[A](implicit c: Coder[A]): Coder[Try[A]]
- def javaBeanCoder[T](implicit arg0: IsJavaBean[T], arg1: ClassTag[T]): Coder[T]
- Definition Classes
- JavaBeanCoders
- def kryo[T](implicit ct: ClassTag[T]): Coder[T]
Create an instance of Kryo Coder for a given Type.
Create an instance of Kryo Coder for a given Type.
Eg: A kryo Coder for org.joda.time.Interval would look like:
implicit def jiKryo: Coder[Interval] = Coder.kryo[Interval]
- Definition Classes
- CoderGrammar
- def kv[K, V](koder: Coder[K], voder: Coder[V]): Coder[KV[K, V]]
- Definition Classes
- CoderGrammar
- 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 lazy val pathCoder: Coder[Path]
- def raw[T](beam: org.apache.beam.sdk.coders.Coder[T]): Coder[T]
Create a ScioCoder from a Beam Coder
Create a ScioCoder from a Beam Coder
- Definition Classes
- CoderGrammar
- implicit lazy val serializableCoder: Coder[Serializable]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform[U, T](c: Coder[U])(f: (org.apache.beam.sdk.coders.Coder[U]) => Coder[T])(implicit ct: ClassTag[T]): Coder[T]
- Definition Classes
- CoderGrammar
- implicit lazy val uriCoder: Coder[URI]
- implicit lazy val uuidCoder: Coder[UUID]
- implicit lazy val voidCoder: Coder[Void]
- 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()
- def xmap[U, T](c: Coder[U])(f: (U) => T, t: (T) => U)(implicit ct: ClassTag[T]): Coder[T]
Given a Coder[A], create a Coder[B] by defining two functions A => B and B => A.
Given a Coder[A], create a Coder[B] by defining two functions A => B and B => A. The Coder[A] can be resolved implicitly by calling Coder[A]
Eg: Coder for org.joda.time.Interval can be defined by having the following implicit in scope. Without this implicit in scope Coder derivation falls back to Kryo.
implicit def jiCoder: Coder[Interval] = Coder.xmap(Coder[(Long, Long)])(t => new Interval(t._1, t._2), i => (i.getStartMillis, i.getEndMillis))
In the above example we implicitly derive Coder[(Long, Long)] and we define two functions, one to convert a tuple (Long, Long) to Interval, and a second one to convert an Interval to a tuple of (Long, Long)
- Definition Classes
- CoderGrammar