Interface ExtractionService


public interface ExtractionService
Represents a service for data extraction actions, as configured by the provided properties. Actions defined on this service operate on top of raw data that are directly extractable via DataQuery or DevicePropertyDataQuery.
See Also:
  • Method Details

    • getData

      org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getData(Variable variable, ExtractionProperties properties)
      Returns a dataset based on the provided variable, controlled by the given extraction properties. This action extracts variable data for a given time window, enhanced by a configurable lookup strategy.
      Parameters:
      variable - an instance of Variable pointing to raw data for the extraction
      properties - the extraction properties containing all semantics to control the action
      Returns:
      a dataset of the extracted rows
    • getData

      org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getData(Entity entity, ExtractionProperties properties)
      Returns a Dataset based on the provided entity, controlled by the given extraction properties. This action extracts entity data for a given time window, enhanced by a configurable lookup strategy.
      Parameters:
      entity - an instance of Entity pointing to raw data for the extraction
      properties - the extraction properties containing all semantics to control the action
      Returns:
      a dataset of the extracted rows