Class

com.sparkfits.FitsHduBintable

BintableHDU

Related Doc: package FitsHduBintable

Permalink

case class BintableHDU(header: Array[String], selectedColumns: List[String] = null) extends HDU with Product with Serializable

Main class for Bintable HDU

Linear Supertypes
Serializable, Serializable, Product, Equals, HDU, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BintableHDU
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. HDU
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BintableHDU(header: Array[String], selectedColumns: List[String] = null)

    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. val BYTE_SIZE: Int

    Permalink
    Definition Classes
    HDU
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val colNames: Map[String, String]

    Permalink
  8. val colPositions: List[Int]

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getColType(keyValues: Map[String, String], colIndex: Int): String

    Permalink

    Get the type of the elements of a column with index colIndex of a HDU.

    Get the type of the elements of a column with index colIndex of a HDU.

    keyValues

    : (Map[String, String]) The header of the HDU.

    colIndex

    : (Int) Index (zero-based) of a column.

    returns

    (String), the type (FITS convention) of the elements of the column.

  13. def getColTypes(keyValues: Map[String, String]): List[String]

    Permalink

    Return the types of elements for each column as a list.

    Return the types of elements for each column as a list.

    keyValues

    : (Map[String, String]) keyValues from the header of the HDU (see parseHeader).

    returns

    (List[String]), list with the types of elements for each column as given by the header.

    Definition Classes
    BintableHDUHDU
  14. def getColumnPos(keyValues: Map[String, String], colName: String): Int

    Permalink

    Get the position (zero based) of a column with name colName of a HDU.

    Get the position (zero based) of a column with name colName of a HDU.

    colName

    : (String) The name of the column

    returns

    (Int), position (zero-based) of the column.

  15. def getElementFromBuffer(subbuf: Array[Byte], fitstype: String): Any

    Permalink

    Convert one array of bytes corresponding to one element of the table into its primitive type.

    Convert one array of bytes corresponding to one element of the table into its primitive type.

    subbuf

    : (Array[Byte]) Array of byte describing one element of the table.

    fitstype

    : (String) The type of this table element according to the header.

    returns

    the table element converted from binary.

    Definition Classes
    HDU
  16. def getNCols(keyValues: Map[String, String]): Long

    Permalink

    Get the number of column of a HDU.

    Get the number of column of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.

    keyValues

    : (Map[String, String]) keyValues from the header of the HDU (see parseHeader).

    returns

    (Long), the number of rows as written in KEYWORD=TFIELDS.

    Definition Classes
    BintableHDUHDU
  17. def getNRows(keyValues: Map[String, String]): Long

    Permalink

    Get the number of row of a HDU.

    Get the number of row of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.

    keyValues

    : (Map[String, String]) keyValues from the header of the HDU (see parseHeader).

    returns

    (Long), the number of rows as written in KEYWORD=NAXIS2.

    Definition Classes
    BintableHDUHDU
  18. def getRow(buf: Array[Byte]): List[Any]

    Permalink

    Convert a bintable row from binary to primitives.

    Convert a bintable row from binary to primitives.

    buf

    : (Array[Byte]) Array of bytes.

    returns

    (List[Any]) : Decoded row as a list of primitives.

    Definition Classes
    BintableHDUHDU
  19. def getSizeRowBytes(keyValues: Map[String, String]): Int

    Permalink

    Get the size (bytes) of each row of a HDU.

    Get the size (bytes) of each row of a HDU. We rely on what's written in the header, meaning here we do not access the data directly.

    keyValues

    : (Map[String, String]) keyValues from the header of the HDU (see parseHeader).

    returns

    (Int), the size (bytes) of one row as written in KEYWORD=NAXIS1.

    Definition Classes
    BintableHDUHDU
  20. def getSplitLocation(fitstype: String): Int

    Permalink

    Companion routine to rowSplitLocations.

    Companion routine to rowSplitLocations. Returns the size of a primitive according to its type from the FITS header.

    fitstype

    : (String) Element type according to FITS standards (I, J, K, E, D, L, A, etc)

    returns

    (Int), the size (bytes) of the element.

  21. val header: Array[String]

    Permalink
  22. def implemented: Boolean

    Permalink

    Bintables are implemented

    Bintables are implemented

    returns

    (Boolean)

    Definition Classes
    BintableHDUHDU
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val keyValues: Map[String, String]

    Permalink
  25. def listOfStruct: List[StructField]

    Permalink

    Build a list of StructField from header information.

    Build a list of StructField from header information. The list of StructField is then used to build the DataFrame schema.

    returns

    (List[StructField]) List of StructField with column name, column type, and whether the column is nullable.

    Definition Classes
    BintableHDUHDU
  26. val ncols: Int

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def rowSplitLocations(rowTypes: List[String], col: Int = 0): List[Int]

    Permalink

    Description of a row in terms of bytes indices.

    Description of a row in terms of bytes indices. rowSplitLocations returns an array containing the position of elements (byte index) in a row. Example if we have a row with [20A, E, E], one will have rowSplitLocations -> [0, 20, 24, 28] that is a string on 20 Bytes, followed by 2 floats on 4 bytes each.

    col

    : (Int) Column position used for the recursion. Should be left at 0.

    returns

    (List[Int]), the position of elements (byte index) in a row.

  31. val rowTypes: List[String]

    Permalink
  32. val selectedColNames: List[String]

    Permalink
  33. val selectedColumns: List[String]

    Permalink
  34. val splitLocations: List[Int]

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

    Permalink
    Definition Classes
    AnyRef
  36. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from HDU

Inherited from AnyRef

Inherited from Any

Ungrouped