Class

mimir.views

ViewManager

Related Doc: package views

Permalink

class ViewManager extends LazyLogging

Linear Supertypes
LazyLogging, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ViewManager
  2. LazyLogging
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ViewManager(db: Database)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alter(name: String, query: Operator): Unit

    Permalink

    Alter an existing view to use a new query

    Alter an existing view to use a new query

    name

    The name of the view to alter

    query

    The new query to back the view with

    Exceptions thrown

    SQLException If a view or table with the same name already exists

  5. def apply(name: String): ViewMetadata

    Permalink

    Obtain properties for the specified view

    Obtain properties for the specified view

    name

    The name of the view to look up

    returns

    Properties for the specified query

    Exceptions thrown

    SQLException If the specified view does not exist

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def create(name: String, query: Operator): Unit

    Permalink

    Instantiate a new view

    Instantiate a new view

    name

    The name of the view to create

    query

    The query to back the view with

    Exceptions thrown

    SQLException If a view or table with the same name already exists

  9. def dematerialize(name: String): Unit

    Permalink

    Remove the materialization for the specified view

    Remove the materialization for the specified view

    name

    The name of the view to dematerialize

  10. def drop(name: String): Unit

    Permalink

    Drop an existing view

    Drop an existing view

    name

    The name of the view to alter

    Exceptions thrown

    SQLException If a view or table with the same name already exists

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get(name: String): Option[ViewMetadata]

    Permalink

    Obtain the properties of the specified view

    Obtain the properties of the specified view

    name

    The name of the view to look up

    returns

    Properties for the specified query or None if the view doesn't exist

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def init(): Unit

    Permalink

    Initialize the view manager:

    Initialize the view manager:

    • Create a system catalog table to store information about views
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def list(): List[String]

    Permalink

    List all views known to the view manager

    List all views known to the view manager

    returns

    A list of all view names

  20. def listAttrsQuery: Operator

    Permalink

    Return a query that can be used to list the attributes of all views known to Mimir.

    Return a query that can be used to list the attributes of all views known to Mimir. Used mainly by Mimir's system catalog (presently unimplemented)

  21. def listViewsQuery: Operator

    Permalink

    Return a query that can be used to list all views known to Mimir.

    Return a query that can be used to list all views known to Mimir. Used mainly by Mimir's system catalog

    returns

    A query that returns a list of all known views when executed

  22. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging → Logging
  23. def materialize(name: String): Unit

    Permalink

    Materialize the specified view

    Materialize the specified view

    name

    The name of the view to materialize

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def rebuildAdaptiveViews(op: Operator): Operator

    Permalink

    Rebuild Adaptive Views: The first step in query rewriting.

    Rebuild Adaptive Views: The first step in query rewriting.

    For each adaptive view in the provided query, rerun viewFor so we get an updated view in case of hard-coded model use in the view creation and subsequent feedback.

    op

    The operator to rebuild adaptive views in

    returns

    A version of the tree for op with refreshed View nodes.

  28. def resolve(op: Operator): Operator

    Permalink

    Resolve views: The final step in query rewriting.

    Resolve views: The final step in query rewriting.

    For each view in the provided query, decide whether the view can be resolved to a materialized view table, or whether it needs to be executed directly.

    op

    The operator to resolve views in

    returns

    A version of the tree for op with no View nodes.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. val viewTable: String

    Permalink
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LazyLogging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped