Class Hdf5Resolver

java.lang.Object
nz.org.riskscape.engine.data.BaseBookmarkResolver<T>
nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<Hdf5Resolver.Parameters>
nz.org.riskscape.hdf5.Hdf5Resolver
All Implemented Interfaces:
nz.org.riskscape.engine.data.BookmarkResolver, nz.org.riskscape.engine.Identified

public class Hdf5Resolver extends nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<Hdf5Resolver.Parameters>

A general purpose resolver to open HDF5 files (or rather datasets within them) in a variety of ways.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static class 
     

    Nested classes/interfaces inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    nz.org.riskscape.engine.data.BaseBookmarkResolver.ProblemCodes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.google.common.collect.Range<Integer>
     

    Fields inherited from class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver

    v2r

    Fields inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    engine
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hdf5Resolver(nz.org.riskscape.engine.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected nz.org.riskscape.problem.ResultOrProblems
     
    protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.relation.Relation>
    Builds a relation for the desired dataset.
     
    protected void
    validateParameters(Hdf5Resolver.Parameters params, nz.org.riskscape.engine.bind.BindingContext context)
     

    Methods inherited from class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver

    applyFilter, getAliasMapping, getV2r, rasterize, setV2r

    Methods inherited from class nz.org.riskscape.engine.data.BaseBookmarkResolver

    attemptPrjParse, attemptPrjParse, bindAndValidate, buildParameterSet, checkFile, getBookmarkedPath, getBookmarkedPathOr, getEngine, getExtensions, getFormat, getFormats, getParameterSet, getParamsClass, newResolved, resolve, setCrs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface nz.org.riskscape.engine.data.BookmarkResolver

    getId, getName, supportedParameters

    Methods inherited from interface nz.org.riskscape.engine.Identified

    getIdentifiedClass
  • Field Details

    • ALLOWED_READ_SIZE_MB

      public static final com.google.common.collect.Range<Integer> ALLOWED_READ_SIZE_MB
  • Constructor Details

    • Hdf5Resolver

      public Hdf5Resolver(nz.org.riskscape.engine.Engine engine)
  • Method Details

    • build

      protected nz.org.riskscape.problem.ResultOrProblems build(Hdf5Resolver.Parameters parameters)
      Overrides:
      build in class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<Hdf5Resolver.Parameters>
    • createRawRelationFromBookmark

      protected nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.engine.relation.Relation> createRawRelationFromBookmark(Hdf5Resolver.Parameters params)

      Builds a relation for the desired dataset. The returned relation by default will contain all attributes from the target dataset, but only those in Hdf5Resolver.Parameters.getIncludeAttributeList() will be included if that is not empty.

      Specified by:
      createRawRelationFromBookmark in class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<Hdf5Resolver.Parameters>
    • validateParameters

      protected void validateParameters(Hdf5Resolver.Parameters params, nz.org.riskscape.engine.bind.BindingContext context)
      Overrides:
      validateParameters in class nz.org.riskscape.engine.data.relation.RelationBookmarkResolver<Hdf5Resolver.Parameters>
    • getExtensionsToFormats

      public Map<String,String> getExtensionsToFormats()
      Specified by:
      getExtensionsToFormats in class nz.org.riskscape.engine.data.BaseBookmarkResolver<Hdf5Resolver.Parameters>