Interface ValueAssembler<E extends org.n52.series.db.beans.DataEntity<T>,​V extends org.n52.io.response.dataset.AbstractValue<?>,​T>

    • Method Detail

      • getData

        org.n52.io.response.dataset.Data<V> getData​(String id,
                                                    DbQuery query)
        Assembles observation values as Data output.
        Parameters:
        id - the dataset id
        query - the query
        Returns:
        the assembled data
      • getReferenceValues

        default List<org.n52.io.response.dataset.ReferenceValueOutput<V>> getReferenceValues​(org.n52.series.db.beans.DatasetEntity datasetEntity,
                                                                                             DbQuery query)
        Assembles a list of reference values.
        Parameters:
        datasetEntity - the dataset
        query - the query
        Returns:
        a list of reference values
      • assembleDataValueWithMetadata

        V assembleDataValueWithMetadata​(E dataEntity,
                                        org.n52.series.db.beans.DatasetEntity datasetEntity,
                                        DbQuery query)
        Assembles an output for a data entity containing all metadata (geometry, parameters, valid time, etc.) for a given query.
        Parameters:
        dataEntity - the single data entity to assemble
        datasetEntity - the dataset the data entity belongs to
        query - the query
        Returns:
        the assembled output
      • assembleDataValue

        V assembleDataValue​(E dataEntity,
                            org.n52.series.db.beans.DatasetEntity datasetEntity,
                            DbQuery query)
        Assembles an output for a data entity for a given query.
        Parameters:
        dataEntity - the single data entity to assemble
        datasetEntity - the dataset the data entity belongs to
        query - the query
        Returns:
        the assembled output
      • getFirstValue

        V getFirstValue​(org.n52.series.db.beans.DatasetEntity entity,
                        DbQuery query)
        Parameters:
        entity - the dataset entity
        query - the query
        Returns:
        the first value for the given dataset
      • getLastValue

        V getLastValue​(org.n52.series.db.beans.DatasetEntity entity,
                       DbQuery query)
        Parameters:
        entity - the dataset entity
        query - the query
        Returns:
        the last value for the given dataset
      • getClosestValueBeforeStart

        E getClosestValueBeforeStart​(org.n52.series.db.beans.DatasetEntity dataset,
                                     DbQuery query)
        Finds the closest value before a given timespan.
        Parameters:
        dataset - the dataset
        query - the query containing the timespan
        Returns:
        the closest value before a given timespan
      • getClosestValueAfterEnd

        E getClosestValueAfterEnd​(org.n52.series.db.beans.DatasetEntity dataset,
                                  DbQuery query)
        Finds the closest value after a given timespan.
        Parameters:
        dataset - the dataset
        query - the query containing the timespan
        Returns:
        the closest value after a given timespan
      • hasConnector

        default boolean hasConnector​(org.n52.series.db.beans.DatasetEntity entity)
      • getConnector

        default ValueConnector getConnector​(org.n52.series.db.beans.DatasetEntity entity)