Interface DiscreteFeatureReader<F extends DiscreteFeature<?,​?>>

    • Method Detail

      • readFeature

        F readFeature​(String id,
                      Set<String> variableIds)
               throws DataReadingException
        Reads a DiscreteFeature from the underlying data source. This method should be used when only a single feature needs to be read. For multiple features it is recommended to use the readFeatures(Collection, Set) method since invoking this method multiple times may result in a large amount of overhead re-opening and closing data files.
        Parameters:
        id - The identifier of the feature within its collection.
        variableIds - The variables which must be included in the feature. Additional variables can be present if this is more convenient (i.e. if entire features are already stored in memory there is no need to subset them to exclude unwanted variables). If this argument is null then all available variables should be included
        Returns:
        A DiscreteFeature containing measurements for all of the supplied variables.
        Throws:
        DataReadingException
      • readFeatures

        List<F> readFeatures​(Collection<String> ids,
                             Set<String> variableIds)
                      throws DataReadingException
        Reads DiscreteFeatures from the underlying data source.
        Parameters:
        ids - The identifier of the features within their collection.
        variableIds - The variables which must be included in the feature. Additional variables can be present if this is more convenient (i.e. if entire features are already stored in memory there is no need to subset them to exclude unwanted variables). If this argument is null then all available variables should be included
        Returns:
        A List of DiscreteFeatures containing measurements for all of the supplied variables.
        Throws:
        DataReadingException