Class CollectionSpecParserS3


  • public class CollectionSpecParserS3
    extends thredds.inventory.CollectionSpecParserAbstract
    Parses the collection specification string for S3 files.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CollectionSpecParserS3.Provider
      An S3 Service Provider of CollectionSpecParserAbstract.
    • Field Summary

      • Fields inherited from class thredds.inventory.CollectionSpecParserAbstract

        dateFormatMark, delimiter, filter, filterOnName, fragment, rootDir, spec, subdirs
    • Method Detail

      • create

        public static CollectionSpecParserS3 create​(String collectionSpec,
                                                    Formatter errlog)
        Example spec: "cdms3:top-bucket/directory/#dateFormatMark#regExp#delimiter=/" This only allows the dateFormatMark to be in the file name, not anywhere else in the filename path, and you can't use any part of the dateFormat to filter on.
        Parameters:
        collectionSpec - the collection spec
        errlog - put error messages here, may be null
        Returns:
        CollectionSpecParserS3
      • getFilePath

        public String getFilePath​(String filename)
        Specified by:
        getFilePath in class thredds.inventory.CollectionSpecParserAbstract