java.lang.Object
cern.nxcals.api.custom.extraction.data.builders.expanded.ParameterDataQuery

public class ParameterDataQuery extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static SystemStage<DeviceStage<List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>>,List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>>
    builder(org.apache.spark.sql.SparkSession session)
     
    static List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
    getFor(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull String system, @NonNull String parameter, @NonNull TimeWindow timeWindow)
    Query for given parameter and return result dataset
    static List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
    getFor(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull String system, @NonNull String device, @NonNull String property, @NonNull TimeWindow timeWindow)
    Search for given device/property in given system within time window.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • builder

      public static SystemStage<DeviceStage<List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>>,List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>> builder(org.apache.spark.sql.SparkSession session)
    • getFor

      public static List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull @NonNull String system, @NonNull @NonNull String device, @NonNull @NonNull String property, @NonNull @NonNull TimeWindow timeWindow)
      Search for given device/property in given system within time window.
      Parameters:
      sparkSession - spark session
      system - system name (CMW, PM ...)
      device - device name
      property - property name
      timeWindow - time window to query for
      Returns:
      Dataset with result in Row
    • getFor

      public static List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull @NonNull String system, @NonNull @NonNull String parameter, @NonNull @NonNull TimeWindow timeWindow)
      Query for given parameter and return result dataset
      Parameters:
      sparkSession - spark session
      system - system name
      parameter - in form device/property
      timeWindow - time window for query
      Returns:
      result dataset