Object

com.sparkfits

FitsSchema

Related Doc: package sparkfits

Permalink

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
Visibility
  1. Public
  2. All

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

    Permalink

    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.

    fits

    : (Fits) Fits instance.

    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.

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

    Permalink

    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.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def checkAnyHeader(header: Array[String]): Unit

    Permalink

    A few checks on the header for any header type

    A few checks on the header for any header type

    header

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

  8. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getEmptySchema: StructType

    Permalink

    Return schema for empty DataFrame

    Return schema for empty DataFrame

    returns

    Return a StructType with one entry stating nothing.

  14. def getSchema(fits: Fits): StructType

    Permalink

    Retrieve DataFrame Schema from HDU header.

    Retrieve DataFrame Schema from HDU header.

    fits

    : (Fits) Fits instance

    returns

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

  15. def hashCode(): Int

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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped