Class Views

  • All Implemented Interfaces:
    java.lang.Iterable<ViewMetadata>

    public final class Views
    extends java.lang.Object
    implements java.lang.Iterable<ViewMetadata>
    • Method Detail

      • none

        public static Views none()
      • iterator

        public java.util.Iterator<ViewMetadata> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<ViewMetadata>
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • stream

        public java.util.stream.Stream<ViewMetadata> stream()
      • get

        public java.util.Optional<ViewMetadata> get​(java.lang.String name)
        Get the materialized view with the specified name
        Parameters:
        name - a non-qualified materialized view name
        Returns:
        an empty Optional if the materialized view name is not found; a non-empty optional of ViewMetadata otherwise
      • getNullable

        @Nullable
        public ViewMetadata getNullable​(java.lang.String name)
        Get the view with the specified name
        Parameters:
        name - a non-qualified view name
        Returns:
        null if the view name is not found; the found ViewMetadata otherwise
      • with

        public Views with​(ViewMetadata view)
        Create a MaterializedViews instance with the provided materialized view added
      • without

        public Views without​(java.lang.String name)
        Creates a MaterializedViews instance with the materializedView with the provided name removed
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object