Class DataQuery
- java.lang.Object
-
- cern.nxcals.api.extraction.data.builders.DataQuery
-
public class DataQuery extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.spark.sql.SparkSession
session
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataQuery
builder(@NonNull org.apache.spark.sql.SparkSession session)
SystemStage<TimeStartStage<EntityAliasStage<KeyValueStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
byEntities()
SystemStage<TimeStartStage<VariableAliasStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
byVariables()
SystemOrIdStage<KeyValueStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,KeyValueStageLoop<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
entities()
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull TimeWindow timeWindow, @NonNull Entity entity)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull TimeWindow timeWindow, @NonNull Variable variable)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession spark, @NonNull TimeWindow timeWindow, @NonNull java.lang.String system, @NonNull EntityQuery... entitiesQueries)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession spark, @NonNull TimeWindow timeWindow, @NonNull java.lang.String system, @NonNull java.lang.String... variables)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession spark, @NonNull TimeWindow timeWindow, @NonNull java.lang.String system, @NonNull java.util.List<java.lang.String> variables)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession spark, @NonNull TimeWindow timeWindow, @NonNull java.lang.String system, @NonNull java.util.List<java.lang.String> variables, @NonNull java.util.List<java.lang.String> variablesLike)
static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>
getFor(@NonNull org.apache.spark.sql.SparkSession spark, @NonNull TimeWindow timeWindow, @NonNull java.lang.String system, @NonNull java.util.Map<java.lang.String,java.lang.Object>... keyValuesArr)
SystemOrIdStage<VariableStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,VariableStageLoop<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>
variables()
-
-
-
Method Detail
-
builder
public static DataQuery builder(@NonNull @NonNull org.apache.spark.sql.SparkSession session)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull Variable variable)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession sparkSession, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull Entity entity)
-
getFor
@SafeVarargs public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession spark, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull java.lang.String system, @NonNull @NonNull java.util.Map<java.lang.String,java.lang.Object>... keyValuesArr)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession spark, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull java.lang.String system, @NonNull @NonNull EntityQuery... entitiesQueries)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession spark, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull java.lang.String system, @NonNull @NonNull java.lang.String... variables)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession spark, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull java.lang.String system, @NonNull @NonNull java.util.List<java.lang.String> variables)
-
getFor
public static org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getFor(@NonNull @NonNull org.apache.spark.sql.SparkSession spark, @NonNull @NonNull TimeWindow timeWindow, @NonNull @NonNull java.lang.String system, @NonNull @NonNull java.util.List<java.lang.String> variables, @NonNull @NonNull java.util.List<java.lang.String> variablesLike)
-
variables
public SystemOrIdStage<VariableStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,VariableStageLoop<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> variables()
-
entities
public SystemOrIdStage<KeyValueStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,KeyValueStageLoop<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> entities()
-
byVariables
public SystemStage<TimeStartStage<VariableAliasStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> byVariables()
- Returns:
- query builder for variables queries
-
byEntities
public SystemStage<TimeStartStage<EntityAliasStage<KeyValueStage<org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>>,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> byEntities()
- Returns:
- query builder for entities queries
-
-