Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package saddle
    Definition Classes
    org
  • package binary

    Binary serialization for Frame[String,String,T] or Mat[T] with primitive T

    Binary serialization for Frame[String,String,T] or Mat[T] with primitive T

    The layout of binary format is as follows:

    • The first 6 bytes are "SADDLE"
    • The next unsigned byte is the major version
    • The next unsigned byte is the minor version
    • The next 4 bytes form a little endian integer as HEADER_LENGTH
    • The next HEADER_LENGTH bytes form an UTF-8 string as the header.
    • The header is a valid JSON object with the following fields:
      • v: numeric positive integer is the version of the header structure
      • colix : a JSON array of strings, it is the column index of the frame
      • rowix : a JSON array of strings, it is the row index of the frame
      • numrows: numeric positive integer, number of rows
      • numcols: numeric positive integer, number of cols
      • Either one of rowix or numrows may be missing
      • Either one of colix or numcols may be missing
      • rowmajor : a boolean, indicating whether the data is stored in row-major or col-major order
      • datatype : string, either "double", "long", "int", "float", "byte"
    • The header is padded with spaces (0x20) such that HEADER_LENGTH+12 is divisible by 16. The count of spaces are included in HEADER_LENGTH.
    • The next width * numRows * numCols bytes form a little endian primitive array in row-major or col-major order. numRows and numCols are determined from the rowix/numrows and colix/numcols header fields. width is determined from the datatype field (8 for double and long, 4 for int and float, 1 for byte)
    Definition Classes
    saddle
  • Reader
  • Writer

object Writer

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Writer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val KEY_colix: String
  5. val KEY_datatype: String
  6. val KEY_numcols: String
  7. val KEY_numrows: String
  8. val KEY_rowix: String
  9. val KEY_rowmajor: String
  10. val KEY_v: String
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. def createFrameDescriptor[RX, CX, T](frame: Frame[RX, CX, T])(implicit arg0: ST[T]): Either[String, String]
  14. def createHeader(descriptor: Either[String, String]): Either[String, Array[Byte]]
  15. def createMatDescriptor[T](mat: Mat[T])(implicit arg0: ST[T]): Either[String, String]
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. def writeFrameIntoArray[RX, CX, T](frame: Frame[RX, CX, T])(implicit arg0: ST[T]): Either[String, Array[Byte]]
  31. def writeFrameIntoChannel[RX, CX, T](frame: Frame[RX, CX, T], channel: WritableByteChannel)(implicit arg0: ST[T]): Either[String, Unit]
  32. def writeFully(bb: ByteBuffer, channel: WritableByteChannel): Unit
  33. def writeMatIntoArray[T](mat: Mat[T])(implicit arg0: ST[T]): Either[String, Array[Byte]]
  34. def writeMatIntoArrays[T](mat: Mat[T], maxArrayLength: Long = 2147483544)(implicit arg0: ST[T]): Either[String, IndexedSeq[Array[Byte]]]
  35. def writeMatIntoChannel[T](mat: Mat[T], channel: WritableByteChannel)(implicit arg0: ST[T]): Either[String, Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped