Class ParameterDataQuery


  • public class ParameterDataQuery
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SystemStage<DeviceStage<java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>>,​java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>> builder​(org.apache.spark.sql.SparkSession session)  
      static java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor​(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull java.lang.String system, @NonNull java.lang.String parameter, @NonNull TimeWindow timeWindow)
      Query for given parameter and return result dataset
      static java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor​(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull java.lang.String system, @NonNull java.lang.String device, @NonNull java.lang.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 Detail

      • builder

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

        public static java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor​(@NonNull
                                                                                                    @NonNull org.apache.spark.sql.SparkSession sparkSession,
                                                                                                    @NonNull
                                                                                                    @NonNull java.lang.String system,
                                                                                                    @NonNull
                                                                                                    @NonNull java.lang.String device,
                                                                                                    @NonNull
                                                                                                    @NonNull java.lang.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 java.util.List<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getFor​(@NonNull
                                                                                                    @NonNull org.apache.spark.sql.SparkSession sparkSession,
                                                                                                    @NonNull
                                                                                                    @NonNull java.lang.String system,
                                                                                                    @NonNull
                                                                                                    @NonNull java.lang.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