All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gorpipe.spark.SparkUtils.scala Maven / Gradle / Ivy

Go to download

GORpipe allows analysis of large sets of genomic and phenotypic tabular data using a declarative query language in a parallel execution engine

There is a newer version: 4.3.2
Show newest version
package org.gorpipe.spark

import org.apache.spark.sql.types.StructType
import org.gorpipe.gor.function.{GorRowFilterFunction, GorRowMapFunction}

class SparkUtils {
  def where(w: String, schema: StructType): GorSparkRowFilterFunction[org.gorpipe.gor.model.Row] = {
    new GorSparkRowFilterFunction[org.gorpipe.gor.model.Row](w, schema)
  }

  def where(w: String, header: Array[String], gortypes: Array[String]): GorRowFilterFunction[org.gorpipe.gor.model.Row] = {
    new GorRowFilterFunction[org.gorpipe.gor.model.Row](w, header, gortypes)
  }

  def calc(c: String, header: Array[String], gortypes: Array[String]): GorRowMapFunction = {
    new GorRowMapFunction(c, header, gortypes)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy