Class ImageDBConnection

    • Constructor Detail

      • ImageDBConnection

        public ImageDBConnection​(DataSource dsourc,
                                 IImgParamNormalizer normalizer,
                                 org.slf4j.Logger logger,
                                 int maxCacheSize)
        Constructor that assumes default values for parameter down sample and the number of parameters for each image cell. Those values are a division by 64 for all coordinates of input events, and 10 image parameters per cell location.
        Parameters:
        dsourc - The data source connection that is used to connect to the database.
        normalizer - The image parameter normalizer, can be null, and if it is, then no normalization is performed on the parameters before return. Else, parameters are normalized prior to return using this object.
        logger - Logger used to report errors that occurred while processing data requests.
        maxCacheSize - The number of input event and wavelength pairs to cache the image parameter cube for before replacing with LRU ordering.
      • ImageDBConnection

        public ImageDBConnection​(DataSource dsourc,
                                 IImgParamNormalizer normalizer,
                                 int paramDim,
                                 int paramDownSample,
                                 org.slf4j.Logger logger,
                                 int maxCacheSize)
        Constructor that defines the parameter dimension and down sampling used to match the input coordinates with the reduced dimensionality parameter space.
        Parameters:
        dsourc - The data source connection that is used to connect to the database.
        normalizer - The image parameter normalizer, can be null, and if it is, then no normalization is performed on the parameters before return. Else, parameters are normalized prior to return using this object.
        paramDim - The depth of image parameters (I.E. the number calculated) at each cell location.
        paramDownSample - The divisor used to match the input coordinates with the reduced dimensionality parameter space.
        logger - Logger used to report errors that occurred while processing data requests.
        maxCacheSize - The number of input event and wavelength pairs to cache the image parameter cube for before replacing with LRU ordering.