Trait

com.sparkfits.FitsHdu

HDU

Related Doc: package FitsHdu

Permalink

trait HDU extends AnyRef

Trait containing generic informations concerning HDU informations. This includes for example number of rows, size of a row, number of columns, types of elements, and methods to access elements.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HDU
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    Generic method to get the types of column elements from the header information.

    Generic method to get the types of column elements from the header information. Must be implemented for all extensions of HDU.

    keyValues

    : (Map[String, String]) (Key, Values) from the header (see parseHeader)

    returns

    (List[String]) Types of elements of columns.

  2. abstract def getNCols(keyValues: Map[String, String]): Long

    Permalink

    Generic method to get the number of columns from the header information.

    Generic method to get the number of columns from the header information. Must be implemented for all extensions of HDU.

    keyValues

    : (Map[String, String]) (Key, Values) from the header (see parseHeader)

    returns

    (Long) Number of columns in the data HDU.

  3. abstract def getNRows(keyValues: Map[String, String]): Long

    Permalink

    Generic method to return the number of rows from the header information.

    Generic method to return the number of rows from the header information. To be implemented in specific HDU.

    keyValues

    : (Map[String, String]) (Key, Values) from the header (see parseHeader)

    returns

    (Long) Number of rows in the data HDU.

  4. abstract def getRow(buf: Array[Byte]): List[Any]

    Permalink

    Generic method to decode the rows of the data block.

    Generic method to decode the rows of the data block. Must be implemented for all extensions of HDU.

    buf

    : (Array[Bytes]) Array of Bytes describing one row.

    returns

    (List[Any]) The decoded row containing primitives.

  5. abstract def getSizeRowBytes(keyValues: Map[String, String]): Int

    Permalink

    Generic method to get the size of one row (bytes) from the header information.

    Generic method to get the size of one row (bytes) from the header information. Must be implemented for all HDU extensions.

    keyValues

    : (Map[String, String]) (Key, Values) from the header (see parseHeader)

    returns

    (Long) Size in bytes of one row.

  6. abstract def implemented: Boolean

    Permalink

    Check whether the HDU is implemented in the library.

    Check whether the HDU is implemented in the library. Must be set for all extensions of HDU trait.

    returns

    (Boolean)

  7. abstract def listOfStruct: List[StructField]

    Permalink

    Generic method to convert header information into StructField used to build the DataFrame schema.

    Generic method to convert header information into StructField used to build the DataFrame schema. Must be implemented for all extensions of HDU.

    returns

    (List[StructField]) List of StructField containing name and types of columns.

Concrete 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
  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. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. 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.

  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped