Interface MetadataTypeValidator

All Known Implementing Classes:
TablesMetadataTypeValidator

public interface MetadataTypeValidator
Provides list of supported metadata types for concrete Metastore component unit and validates if given metadata types are supported.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default void
    validate(Set<MetadataType> metadataTypes)
    Validates if given metadata types contain at least one metadata type and that all metadata types are supported.
  • Method Details

    • supportedMetadataTypes

      Set<MetadataType> supportedMetadataTypes()
      Returns:
      set of supported metadata types for concrete Metastore component unit
    • validate

      default void validate(Set<MetadataType> metadataTypes)
      Validates if given metadata types contain at least one metadata type and that all metadata types are supported.
      Parameters:
      metadataTypes - metadata types to be validated
      Throws:
      MetastoreException - if no metadata types were provided or given metadata types contain unsupported types