Interface Visitor


  • public interface Visitor
    A visitor interface for the Metadata. This visitor allows us to design algorithms that work with metadata artifacts is isolation of metadata API. One use case of it would be for example to write deterministic serialisation and deserialisation logic that requires traversing the metadata more or less in the same topological order of its nodes.
    • Method Detail

      • visit

        default void visit​(@Nonnull
                           Metadata metadata)
      • visit

        void visit​(@Nonnull
                   Table table)
      • visit

        void visit​(@Nonnull
                   Column column)
      • startVisit

        void startVisit​(@Nonnull
                        SchemaTemplate schemaTemplate)
      • finishVisit

        void finishVisit​(@Nonnull
                         SchemaTemplate schemaTemplate)
      • visit

        void visit​(@Nonnull
                   Schema schema)
      • visit

        void visit​(@Nonnull
                   Index index)