Object/Trait

com.datastax.spark.connector.types

TypeConverter

Related Docs: trait TypeConverter | package types

Permalink

object TypeConverter extends Serializable

Defines a set of converters and implicit functions used to look up an appropriate converter for a desired type. Thanks to implicit method lookup, it is possible to implement a generic method CassandraRow#get, which picks up the right converter basing solely on its type argument.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TypeConverter
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractMapConverter[CC, K, V] extends CollectionConverter[CC, (K, V)]

    Permalink
  2. class CassandraOptionConverter[T] extends TypeConverter[CassandraOption[T]]

    Permalink
  3. abstract class CollectionConverter[CC, T] extends TypeConverter[CC]

    Permalink
  4. class IndexedSeqConverter[T] extends CollectionConverter[IndexedSeq[T], T]

    Permalink
  5. class IterableConverter[T] extends CollectionConverter[Iterable[T], T]

    Permalink
  6. class JavaArrayListConverter[T] extends CollectionConverter[ArrayList[T], T]

    Permalink
  7. class JavaHashMapConverter[K, V] extends AbstractMapConverter[HashMap[K, V], K, V]

    Permalink
  8. class JavaHashSetConverter[T] extends CollectionConverter[HashSet[T], T]

    Permalink
  9. class JavaListConverter[T] extends CollectionConverter[List[T], T]

    Permalink
  10. class JavaMapConverter[K, V] extends AbstractMapConverter[Map[K, V], K, V]

    Permalink
  11. class JavaSetConverter[T] extends CollectionConverter[Set[T], T]

    Permalink
  12. class ListConverter[T] extends CollectionConverter[List[T], T]

    Permalink
  13. class MapConverter[K, V] extends AbstractMapConverter[Map[K, V], K, V]

    Permalink
  14. class OptionConverter[T] extends TypeConverter[Option[T]]

    Permalink
  15. class OptionToNullConverter extends NullableTypeConverter[AnyRef]

    Permalink

    Converts Scala Options to Java nullable references.

    Converts Scala Options to Java nullable references. Used when saving data to Cassandra.

  16. class PairConverter[K, V] extends TypeConverter[Pair[K, V]]

    Permalink
  17. class SeqConverter[T] extends CollectionConverter[Seq[T], T]

    Permalink
  18. class SetConverter[T] extends CollectionConverter[Set[T], T]

    Permalink
  19. class TreeMapConverter[K, V] extends AbstractMapConverter[TreeMap[K, V], K, V]

    Permalink
  20. class TreeSetConverter[T] extends CollectionConverter[TreeSet[T], T]

    Permalink
  21. class TripleConverter[C1, C2, C3] extends TypeConverter[Triple[C1, C2, C3]]

    Permalink
  22. class Tuple2Converter[K, V] extends TypeConverter[(K, V)]

    Permalink
  23. class Tuple3Converter[C1, C2, C3] extends TypeConverter[(C1, C2, C3)]

    Permalink
  24. class VectorConverter[T] extends CollectionConverter[Vector[T], T]

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit object AnyConverter extends TypeConverter[Any]

    Permalink
  5. implicit object AnyRefConverter extends TypeConverter[AnyRef]

    Permalink
  6. implicit object BigDecimalConverter extends NullableTypeConverter[BigDecimal]

    Permalink
  7. implicit object BigIntConverter extends NullableTypeConverter[BigInt]

    Permalink
  8. implicit object BooleanConverter extends TypeConverter[Boolean]

    Permalink
  9. implicit object ByteArrayConverter extends NullableTypeConverter[Array[Byte]]

    Permalink
  10. implicit object ByteBufferConverter extends NullableTypeConverter[ByteBuffer]

    Permalink
  11. implicit object ByteConverter extends TypeConverter[Byte]

    Permalink
  12. implicit object DateConverter extends NullableTypeConverter[Date]

    Permalink
  13. implicit object DoubleConverter extends TypeConverter[Double]

    Permalink
  14. implicit object FloatConverter extends TypeConverter[Float]

    Permalink
  15. implicit object GregorianCalendarConverter extends NullableTypeConverter[GregorianCalendar]

    Permalink
  16. implicit object InetAddressConverter extends NullableTypeConverter[InetAddress]

    Permalink
  17. implicit object IntConverter extends TypeConverter[Int]

    Permalink
  18. implicit object JavaBigDecimalConverter extends NullableTypeConverter[BigDecimal]

    Permalink
  19. implicit object JavaBigIntegerConverter extends NullableTypeConverter[BigInteger]

    Permalink
  20. implicit object JavaBooleanConverter extends NullableTypeConverter[Boolean]

    Permalink
  21. implicit object JavaByteConverter extends NullableTypeConverter[Byte]

    Permalink
  22. implicit object JavaDoubleConverter extends NullableTypeConverter[Double]

    Permalink
  23. implicit object JavaFloatConverter extends NullableTypeConverter[Float]

    Permalink
  24. implicit object JavaIntConverter extends NullableTypeConverter[Integer]

    Permalink
  25. implicit object JavaLongConverter extends NullableTypeConverter[Long]

    Permalink
  26. implicit object JavaShortConverter extends NullableTypeConverter[Short]

    Permalink
  27. implicit object JodaDateConverter extends NullableTypeConverter[DateTime]

    Permalink
  28. implicit object JodaLocalDateConverter extends NullableTypeConverter[LocalDate]

    Permalink
  29. implicit object LocalDateConverter extends NullableTypeConverter[LocalDate]

    Permalink
  30. implicit object LongConverter extends TypeConverter[Long]

    Permalink
  31. implicit object ShortConverter extends TypeConverter[Short]

    Permalink
  32. implicit object SqlDateConverter extends NullableTypeConverter[Date]

    Permalink
  33. implicit object StringConverter extends NullableTypeConverter[String]

    Permalink
  34. object TimeTypeConverter extends NullableTypeConverter[Long]

    Permalink
  35. implicit object UUIDConverter extends NullableTypeConverter[UUID]

    Permalink
  36. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  37. implicit def cassandraOptionConverter[T](implicit arg0: TypeConverter[T]): CassandraOptionConverter[T]

    Permalink
  38. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. lazy val defaultTimezone: TimeZone

    Permalink
  40. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  42. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  43. def forType[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): TypeConverter[T]

    Permalink

    Useful when implicit converters are not in scope, but a TypeTag is.

    Useful when implicit converters are not in scope, but a TypeTag is. Synchronized to workaround Scala 2.10 reflection thread-safety problems.

  44. def forType[T](moreConverters: Seq[TypeConverter[_]])(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): TypeConverter[T]

    Permalink

    Useful when implicit converters are not in scope, but a TypeTag is.

    Useful when implicit converters are not in scope, but a TypeTag is. Synchronized to workaround Scala 2.10 reflection thread-safety problems.

  45. def forType(tpe: scala.reflect.api.JavaUniverse.Type, moreConverters: Seq[TypeConverter[_]] = Seq.empty): TypeConverter[_]

    Permalink

    Useful for getting converter based on a type received from Scala reflection.

    Useful for getting converter based on a type received from Scala reflection. Synchronized to workaround Scala 2.10 reflection thread-safety problems.

  46. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  47. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  48. implicit def indexedSeqConverter[T](implicit arg0: TypeConverter[T]): IndexedSeqConverter[T]

    Permalink
  49. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  50. implicit def iterableConverter[T](implicit arg0: TypeConverter[T]): IterableConverter[T]

    Permalink
  51. implicit def javaArrayListConverter[T](implicit arg0: TypeConverter[T]): JavaArrayListConverter[T]

    Permalink
  52. implicit def javaHashMapConverter[K, V](implicit arg0: TypeConverter[K], arg1: TypeConverter[V]): JavaHashMapConverter[K, V]

    Permalink
  53. implicit def javaHashSetConverter[T](implicit arg0: TypeConverter[T]): JavaHashSetConverter[T]

    Permalink
  54. implicit def javaListConverter[T](implicit arg0: TypeConverter[T]): JavaListConverter[T]

    Permalink
  55. implicit def javaMapConverter[K, V](implicit arg0: TypeConverter[K], arg1: TypeConverter[V]): JavaMapConverter[K, V]

    Permalink
  56. implicit def javaSetConverter[T](implicit arg0: TypeConverter[T]): JavaSetConverter[T]

    Permalink
  57. implicit def listConverter[T](implicit arg0: TypeConverter[T]): ListConverter[T]

    Permalink
  58. implicit def mapConverter[K, V](implicit arg0: TypeConverter[K], arg1: TypeConverter[V]): MapConverter[K, V]

    Permalink
  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  61. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. implicit def optionConverter[T](implicit arg0: TypeConverter[T]): OptionConverter[T]

    Permalink
  63. implicit def pairConverter[K, V](implicit arg0: TypeConverter[K], arg1: TypeConverter[V]): PairConverter[K, V]

    Permalink
  64. def registerConverter(c: TypeConverter[_]): Unit

    Permalink

    Registers a custom converter

  65. implicit def seqConverter[T](implicit arg0: TypeConverter[T]): SeqConverter[T]

    Permalink
  66. implicit def setConverter[T](implicit arg0: TypeConverter[T]): SetConverter[T]

    Permalink
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  68. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  69. implicit def treeMapConverter[K, V](implicit arg0: TypeConverter[K], arg1: Ordering[K], arg2: TypeConverter[V]): TreeMapConverter[K, V]

    Permalink
  70. implicit def treeSetConverter[T](implicit arg0: TypeConverter[T], arg1: Ordering[T]): TreeSetConverter[T]

    Permalink
  71. implicit def tripleConverter[A1, A2, A3](implicit arg0: TypeConverter[A1], arg1: TypeConverter[A2], arg2: TypeConverter[A3]): TripleConverter[A1, A2, A3]

    Permalink
  72. implicit def tuple2Converter[K, V](implicit arg0: TypeConverter[K], arg1: TypeConverter[V]): Tuple2Converter[K, V]

    Permalink
  73. implicit def tuple3Converter[A1, A2, A3](implicit arg0: TypeConverter[A1], arg1: TypeConverter[A2], arg2: TypeConverter[A3]): Tuple3Converter[A1, A2, A3]

    Permalink
  74. def unregisterConverter(c: TypeConverter[_]): Unit

    Permalink

    Remove a custom converter

  75. implicit def vectorConverter[T](implicit arg0: TypeConverter[T]): VectorConverter[T]

    Permalink
  76. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped