Package com.mckoi.database
Class ViewDef
- java.lang.Object
-
- com.mckoi.database.ViewDef
-
public class ViewDef extends java.lang.ObjectA ViewDef object is a definition of a view stored in the database. It is an object that can be easily serialized and deserialized to/from the system view table. It contains the DataTableDef that describes the characteristics of the view result, and a QueryPlanNode that describes how the view can be constructed.
-
-
Field Summary
Fields Modifier and Type Field Description private DataTableDefview_defThe DataTableDef object that describes the view column def.private QueryPlanNodeview_query_nodeThe QueryPlanNode that is used to evaluate the view.
-
Constructor Summary
Constructors Constructor Description ViewDef(DataTableDef view_def, QueryPlanNode query_node)Constructs the ViewDef object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ViewDefdeserializeFromBlob(BlobAccessor blob)Creates an instance of ViewDef from the serialized information stored in the blob.DataTableDefgetDataTableDef()Returns the DataTableDef for this view.QueryPlanNodegetQueryPlanNode()Returns the QueryPlanNode for this view.(package private) ByteLongObjectserializeToBlob()Forms this ViewDef object into a serialized ByteLongObject object that can be stored in a table.
-
-
-
Field Detail
-
view_def
private DataTableDef view_def
The DataTableDef object that describes the view column def.
-
view_query_node
private QueryPlanNode view_query_node
The QueryPlanNode that is used to evaluate the view.
-
-
Constructor Detail
-
ViewDef
public ViewDef(DataTableDef view_def, QueryPlanNode query_node)
Constructs the ViewDef object.
-
-
Method Detail
-
getDataTableDef
public DataTableDef getDataTableDef()
Returns the DataTableDef for this view.
-
getQueryPlanNode
public QueryPlanNode getQueryPlanNode()
Returns the QueryPlanNode for this view.
-
serializeToBlob
ByteLongObject serializeToBlob()
Forms this ViewDef object into a serialized ByteLongObject object that can be stored in a table.
-
deserializeFromBlob
static final ViewDef deserializeFromBlob(BlobAccessor blob)
Creates an instance of ViewDef from the serialized information stored in the blob.
-
-