nak.serialization

DataSerialization

object DataSerialization extends SerializationFormat with PrimitiveTypes with CompoundTypes with ByteSerialization

File-backed Serialization with standard combinators using optimized binary formats where able, default Java serialization otherwise.

Linear Supertypes
ByteSerialization, CompoundTypes, PrimitiveTypes, SerializationFormat, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DataSerialization
  2. ByteSerialization
  3. CompoundTypes
  4. PrimitiveTypes
  5. SerializationFormat
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Constructible[V, RW] extends (CompoundTypes.this)#ReadWritable[V]

    Constructable provides a simple way to add serialization support to a more basic type.

  2. type Input = DataInput

    The place to read data from.

    The place to read data from.

    Definition Classes
    DataSerializationSerializationFormat
  3. type Output = DataOutput

    The place to write data to.

    The place to write data to.

    Definition Classes
    DataSerializationSerializationFormat
  4. trait ReadWritable[T] extends Readable[T] with Writable[T]

    A convenience wrapper for Readable and Writable.

  5. trait Readable[+T] extends Serializable

    Inner trait for reading from Input.

  6. trait Writable[T] extends Serializable

    Inner trait for writing to Output.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit def ArrayReadWritable[T](implicit arg0: ReadWritable[T], arg1: ClassTag[T]): ReadWritable[Array[T]]

  7. implicit object ByteArrayReadWritable extends ReadWritable[Array[Byte]]

  8. implicit object DenseMatrixReadWritable extends ReadWritable[DenseMatrix[Double]]

  9. implicit object DenseVectorReadWritable extends ReadWritable[DenseVector[Double]]

  10. implicit object IntArrayReadWritable extends ReadWritable[Array[Int]]

  11. implicit object SparseArrayReadWritable extends ReadWritable[SparseArray[Double]]

  12. implicit def arrayReadWritable[T](implicit tH: ReadWritable[T], man: ClassTag[T]): ReadWritable[Array[T]]

    Definition Classes
    CompoundTypes
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. implicit val booleanReadWritable: ReadWritable[Boolean]

    Definition Classes
    DataSerializationPrimitiveTypes
  15. implicit val byteReadWritable: ReadWritable[Byte]

    Definition Classes
    DataSerializationPrimitiveTypes
  16. implicit val charReadWritable: ReadWritable[Char]

    Definition Classes
    DataSerializationPrimitiveTypes
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def collectionFromElements[K, V, CC[K, V] <: Map[K, V] with MapLike[K, V, CC[K, V]]](c: MapFactory[CC], name: String)(implicit arg0: ReadWritable[K], arg1: ReadWritable[V]): ReadWritable[CC[K, V]]

    Map collection types.

    Map collection types.

    Attributes
    protected
    Definition Classes
    CompoundTypes
  19. def collectionFromElements[T, CC[T] <: Iterable[T]](c: GenericCompanion[CC], name: String)(implicit arg0: ReadWritable[T]): ReadWritable[CC[T]]

    Standard collection types.

    Standard collection types.

    Attributes
    protected
    Definition Classes
    CompoundTypes
  20. implicit def counter2ReadWritable[T, U, V](implicit arg0: ReadWritable[T], arg1: ReadWritable[U], arg2: ReadWritable[V], arg3: DefaultArrayValue[V], arg4: Field[V]): ReadWritable[Counter2[T, U, V]]

    Definition Classes
    CompoundTypes
  21. implicit def counterReadWritable[T, V](implicit arg0: ReadWritable[T], arg1: ReadWritable[V], arg2: DefaultArrayValue[V], arg3: Field[V]): ReadWritable[Counter[T, V]]

    Definition Classes
    CompoundTypes
  22. implicit val doubleReadWritable: ReadWritable[Double]

    Definition Classes
    DataSerializationPrimitiveTypes
  23. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. implicit val floatReadWritable: ReadWritable[Float]

    Definition Classes
    DataSerializationPrimitiveTypes
  27. def fromBytes[T](bytes: Array[Byte])(implicit arg0: Readable[T]): T

    Unmarshalls the object using the implicit Handler Usage: DataSerialization.

    Unmarshalls the object using the implicit Handler Usage: DataSerialization.fromBytes[T](bytes)

    Definition Classes
    DataSerializationByteSerialization
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def getReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[T]

    Definition Classes
    SerializationFormat
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. implicit def indexReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[Index[T]]

    Definition Classes
    CompoundTypes
  32. implicit def indexedSeqReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[IndexedSeq[T]]

    Definition Classes
    CompoundTypes
  33. implicit val intReadWritable: ReadWritable[Int]

    Definition Classes
    DataSerializationPrimitiveTypes
  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. implicit def iterableReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Iterable[T]]

    Definition Classes
    CompoundTypes
  36. implicit def iteratorReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Iterator[T]]

    Definition Classes
    CompoundTypes
  37. implicit def listReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[List[T]]

    Definition Classes
    CompoundTypes
  38. implicit val longReadWritable: ReadWritable[Long]

    Definition Classes
    DataSerializationPrimitiveTypes
  39. implicit def mapReadWritable[K, V](implicit arg0: ReadWritable[K], arg1: ReadWritable[V]): ReadWritable[Map[K, V]]

    Definition Classes
    CompoundTypes
  40. def naiveReadWritable[T]: ReadWritable[T]

    Uses Java serialization.

  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  44. implicit def optionReadWritable[T](implicit arg0: ReadWritable[T]): ReadWritable[Option[T]]

    Definition Classes
    CompoundTypes
  45. def read[T](source: Input)(implicit arg0: Readable[T]): T

    Sugar for implicitly[Readable[T]].

    Sugar for implicitly[Readable[T]].read(source);

    Definition Classes
    SerializationFormat
  46. def readBuildable[T, To](src: Input, builder: Builder[T, To])(implicit arg0: Readable[T]): To

    Reads elements of type T into the given buildable.

    Reads elements of type T into the given buildable. Inverse of writeIterable.

    Attributes
    protected
    Definition Classes
    DataSerializationCompoundTypes
  47. def readName(src: Input): String

    Attributes
    protected
    Definition Classes
    DataSerializationCompoundTypes
  48. def readTupleEnd(in: Input): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  49. def readTupleGlue(in: Input): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  50. def readTupleStart(in: Input): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  51. implicit def seqReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Seq[T]]

    Definition Classes
    CompoundTypes
  52. implicit def setReadWritable[T](implicit tH: ReadWritable[T]): ReadWritable[Set[T]]

    Definition Classes
    CompoundTypes
  53. implicit val shortReadWritable: ReadWritable[Short]

    Definition Classes
    DataSerializationPrimitiveTypes
  54. implicit val stringReadWritable: ReadWritable[String]

    Definition Classes
    DataSerializationPrimitiveTypes
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def toBytes[T](x: T)(implicit arg0: Writable[T]): Array[Byte]

    Marshalls the object using the implicit Handler to a byte array Usage: DataSerialization.

    Marshalls the object using the implicit Handler to a byte array Usage: DataSerialization.toBytes(myData)

    Definition Classes
    DataSerializationByteSerialization
  57. def toString(): String

    Definition Classes
    AnyRef → Any
  58. implicit def tuple2ReadWritable[T1, T2](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2]): ReadWritable[(T1, T2)]

    Definition Classes
    CompoundTypes
  59. implicit def tuple3ReadWritable[T1, T2, T3](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2], t3H: ReadWritable[T3]): ReadWritable[(T1, T2, T3)]

    Definition Classes
    CompoundTypes
  60. implicit def tuple4ReadWritable[T1, T2, T3, T4](implicit t1H: ReadWritable[T1], t2H: ReadWritable[T2], t3H: ReadWritable[T3], t4H: ReadWritable[T4]): ReadWritable[(T1, T2, T3, T4)]

    Definition Classes
    CompoundTypes
  61. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. def write[T](sink: Output, what: T)(implicit arg0: Writable[T]): Unit

    Sugar for implicitly[Writable[T]].

    Sugar for implicitly[Writable[T]].write(sink,what);

    Definition Classes
    SerializationFormat
  65. def writeIterable[T, CC <: Iterable[T]](sink: Output, coll: CC, name: String)(implicit arg0: Writable[T]): Unit

    Writes elements of the given collection.

    Writes elements of the given collection. Inverse of readBuildable.

    Attributes
    protected
    Definition Classes
    DataSerializationCompoundTypes
  66. def writeName(sink: Output, value: String): Unit

    Attributes
    protected
    Definition Classes
    DataSerializationCompoundTypes
  67. def writeNameOpt(out: Output, name: String): Unit

    writeNameOpt is like writeName, but Serialization formats aren't required to use it.

    writeNameOpt is like writeName, but Serialization formats aren't required to use it. Defaults to just calling writeName

    Attributes
    protected
    Definition Classes
    CompoundTypes
  68. def writeTupleEnd(out: Output): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  69. def writeTupleGlue(out: Output): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  70. def writeTupleStart(out: Output): Unit

    Attributes
    protected
    Definition Classes
    CompoundTypes
  71. def writesNames: Boolean

    If you override writeNameOpt to do nothing, override this

    If you override writeNameOpt to do nothing, override this

    Attributes
    protected
    Definition Classes
    CompoundTypes

Inherited from ByteSerialization

Inherited from CompoundTypes

Inherited from PrimitiveTypes

Inherited from SerializationFormat

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped