public class ViewManager extends Object
Modifier and Type | Method and Description |
---|---|
QueryPlanNode |
createViewQueryPlanNode(TableName view_name)
Returns a freshly deserialized QueryPlanNode object for the given view
object.
|
void |
defineView(ViewDef view,
SQLQuery query,
User user)
Defines a view.
|
boolean |
deleteView(TableName view_name)
Deletes the view with the given name, or returns false if no entries were
deleted from the view table.
|
boolean |
viewExists(TableName view_name)
Returns true if the view with the given name exists.
|
public boolean viewExists(TableName view_name)
public void defineView(ViewDef view, SQLQuery query, User user) throws DatabaseException
view
- information that defines the view.query
- the query that forms the view.user
- the user that owns this view being defined.DatabaseException
public boolean deleteView(TableName view_name) throws DatabaseException
DatabaseException
public QueryPlanNode createViewQueryPlanNode(TableName view_name)
Copyright © 2015. All rights reserved.