Class FundamentalUtils
java.lang.Object
cern.nxcals.api.backport.domain.util.FundamentalUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.sql.Columnstatic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> createDatasetFromFundamentals(@NonNull Timestamp startTime, @NonNull Timestamp endTime, @NonNull VariableSet virtualFundamentals, @NonNull DataQuery builder) Deprecated.(always pass SparkSession parameter instead of DataQuery builder, additional validation can be performed)static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> createDatasetFromFundamentals(@NonNull Timestamp startTime, @NonNull Timestamp endTime, @NonNull VariableSet virtualFundamentals, @NonNull org.apache.spark.sql.SparkSession sparkSession) The idea here is to convert a virtual fundamental(s) (created by the MetaDataService) that has a name of ACC:LSA_CYCLE:TIMING_USER to the where condition that is used on the real fundamental.
-
Method Details
-
createDatasetFromFundamentals
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> createDatasetFromFundamentals(@NonNull @NonNull Timestamp startTime, @NonNull @NonNull Timestamp endTime, @NonNull @NonNull VariableSet virtualFundamentals, @NonNull @NonNull org.apache.spark.sql.SparkSession sparkSession) The idea here is to convert a virtual fundamental(s) (created by the MetaDataService) that has a name of ACC:LSA_CYCLE:TIMING_USER to the where condition that is used on the real fundamental. Each virtual fundamental creates such a where condition and all of them are OR-ed for the final query.- Parameters:
startTime-endTime-virtualFundamentals-- Returns:
-
createDatasetFromFundamentals
@Deprecated public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> createDatasetFromFundamentals(@NonNull @NonNull Timestamp startTime, @NonNull @NonNull Timestamp endTime, @NonNull @NonNull VariableSet virtualFundamentals, @NonNull @NonNull DataQuery builder) Deprecated.(always pass SparkSession parameter instead of DataQuery builder, additional validation can be performed) -
concatColumnsToFundamentalVariableName
public static org.apache.spark.sql.Column concatColumnsToFundamentalVariableName()
-