nxcals.api.extraction.data.builders.DataQuery

class nxcals.api.extraction.data.builders.DataQuery(spark, builder_class, builders_package)

A class that provides methods for building queries on data that has been loaded into a Spark dataframe.

Methods

DataQuery.__init__(spark, builder_class, ...)

DataQuery.builder(spark)

DataQuery.byEntities()

DataQuery.byVariables()

DataQuery.entities()

DataQuery.getAsPivot(spark, start_time, end_time)

/** Create a dataset with variable names as columns.

DataQuery.getForEntities(spark, start_time, ...)

DataQuery.getForVariables(spark, start_time, ...)

DataQuery.variables()