Package cern.nxcals.api.custom.service
Interface FundamentalService
-
public interface FundamentalService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>getAll(TimeWindow timeWindow, java.util.Set<FundamentalFilter> fundamentalFilters)Return aDatasetfor a giventime windowthat contains data for fundamental variables that are matching the provided set offundamental filters.default org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>getFor(TimeWindow timeWindow, java.lang.String accelerator)Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachine.default org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>getFor(TimeWindow timeWindow, java.lang.String accelerator, java.lang.String... accelerators)Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachines.org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>getFor(TimeWindow timeWindow, java.util.Collection<java.lang.String> accelerators)Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachines.
-
-
-
Method Detail
-
getAll
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getAll(TimeWindow timeWindow, java.util.Set<FundamentalFilter> fundamentalFilters)
Return aDatasetfor a giventime windowthat contains data for fundamental variables that are matching the provided set offundamental filters. Please, note that variables are obtained from each filter separately and then joined/unioned together. I.e. variable will be included if it satisfies any of the provided filters.- Parameters:
timeWindow- aTimeWindowthat defines time bounds for the data searchfundamentalFilters- a set ofFundamentalFilterbased on which fundamental variables are selected.- Returns:
- a
Datasetwith data for fundamental variables based on the fundamental filters
-
getFor
@Experimental default org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(TimeWindow timeWindow, java.lang.String accelerator)
Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachine.- Parameters:
timeWindow- aTimeWindowthat defines time bounds for the data searchaccelerator- aStringwith machine name.- Returns:
- a
Datasetwith data for fundamental variable for given machine
-
getFor
@Experimental org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(TimeWindow timeWindow, java.util.Collection<java.lang.String> accelerators)
Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachines.- Parameters:
timeWindow- aTimeWindowthat defines time bounds for the data searchaccelerators- aCollectionwith machine names.- Returns:
- a
Datasetwith data for fundamental variable for given machine
-
getFor
@Experimental default org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(TimeWindow timeWindow, java.lang.String accelerator, java.lang.String... accelerators)
Return aDatasetfor a giventime windowthat contains data of fundamental variables for specifiedmachines.- Parameters:
timeWindow- aTimeWindowthat defines time bounds for the data searchaccelerators- aCollectionwith machine names.- Returns:
- a
Datasetwith data for fundamental variable for given machine
-
-