Class ParameterDataQuery
- java.lang.Object
-
- cern.nxcals.api.custom.extraction.data.builders.expanded.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 datasetstatic 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.
-
-
-
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 sessionsystem
- system name (CMW, PM ...)device
- device nameproperty
- property nametimeWindow
- 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 sessionsystem
- system nameparameter
- in form device/propertytimeWindow
- time window for query- Returns:
- result dataset
-
-