@ Override public Date lastModified ( ) { S3ObjectSummary objectSummary = objectSummaryCache . getIfPresent ( s3uri ) ; if ( objectSummary != null ) { return objectSummary . getLastModified ( ) ; } ObjectMetadata metadata = threddsS3Client . getObjectMetadata ( s3uri ) ; if ( metadata != null ) { return metadata . getLastModified ( ) ; } else { // "this" may be a collection or non-existent. In both cases, we return null. return null ; } }
Returns the date that the dataset was last modified . Will be null if the dataset is a collection or non - existent .