com.sparkfits

FitsSchema

object FitsSchema

Object to handle the conversion from a HDU header to a DataFrame Schema.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FitsSchema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def ListOfStruct(fB: FitsBlock, col: Int = 0): List[StructField]

    Construct a list of StructField to be used to construct a DataFrame Schema.

    Construct a list of StructField to be used to construct a DataFrame Schema. This routine is recursive. By default it includes all columns.

    fB

    : (FitsBlock) The object describing the HDU.

    col

    : (Int) The index of the column used for the recursion. Should be left at 0.

    returns

    a List[StructField] with informations about name and type for all columns.

  7. def ReadMyType(name: String, fitstype: String, isNullable: Boolean = true): StructField

    Conversion from fits type to DataFrame Schema type.

    Conversion from fits type to DataFrame Schema type. This can be used to set the name of a column and the type of elements in that column. Fits types nomenclature explained here: https://fits.gsfc.nasa.gov/standard30/fits_standard30.pdf

    name

    : (String) The name of the future column in the DataFrame

    fitstype

    : (String) The type of elements from the fits HEADER. See the link provided.

    isNullable

    : (Boolean) Column is nullable if True (default).

    returns

    a StructField containing name, type and isNullable informations.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def checkBintableHeader(header: Array[String]): Unit

    A few checks on the header for bintable.

    A few checks on the header for bintable. Careful, it will throw errors for image!

    header

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

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  15. def getSchema(fB: FitsBlock): StructType

    Retrieve DataFrame Schema from HDU header.

    Retrieve DataFrame Schema from HDU header.

    fB

    : (FitsBlock) The object describing the HDU.

    returns

    Return a StructType which contain a list of StructField with informations about name and type for all columns.

  16. def hashCode(): Int

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

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

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

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

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

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped