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 Reader

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reader
  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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def parse[T](size: Int, from: ByteBuffer)(implicit arg0: ST[T]): Either[String, Array[T]]
  16. def readFrameDataFromChannel[T](channel: ReadableByteChannel, rowIx: Index[String], colIx: Index[String], width: Int)(implicit arg0: ST[T]): Either[String, Frame[String, String, T]]
  17. def readFrameFromArray[T](array: Array[Byte])(implicit arg0: ST[T]): Either[String, Frame[String, String, T]]
  18. def readFrameFromChannel[T](channel: ReadableByteChannel)(implicit arg0: ST[T]): Either[String, Frame[String, String, T]]
  19. def readFully(bb: ByteBuffer, channel: ReadableByteChannel): java.nio.Buffer
  20. def readHeaderFromChannel[T](channel: ReadableByteChannel)(implicit arg0: ST[T]): Either[String, LinkedHashMap[String, Value]]
  21. def readMatDataFromChannel[T](channel: ReadableByteChannel, numRows: Int, numCols: Int, width: Int)(implicit arg0: ST[T]): Either[String, Mat[T]]
  22. def readMatFromArray[T](array: Array[Byte])(implicit arg0: ST[T]): Either[String, Mat[T]]
  23. def readMatFromArrays[T](arrays: IndexedSeq[Array[Byte]])(implicit arg0: ST[T]): Either[String, Mat[T]]
  24. def readMatFromChannel[T](channel: ReadableByteChannel)(implicit arg0: ST[T]): Either[String, Mat[T]]
  25. def sequence[A, B](s: Seq[Either[A, B]]): Either[A, Seq[B]]
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped