27 namespace Deveel.Data.Sql.Views {
31 if (tableInfo == null)
32 throw new ArgumentNullException(
"tableInfo");
33 if (queryExpression == null)
34 throw new ArgumentNullException(
"queryExpression");
37 QueryExpression = queryExpression;
38 QueryPlan = queryPlan;
63 get {
return ViewName; }
68 data.
SetValue(
"QueryPlan", QueryPlan);
69 data.
SetValue(
"QueryExpression", QueryExpression);
74 serializer.Serialize(writer, viewInfo);
113 using (var stream =
new MemoryStream()) {
114 using (var writer =
new BinaryWriter(stream, Encoding.Unicode)) {
116 serializer.Serialize(writer,
this);
120 var data = stream.ToArray();
ViewInfo(TableInfo tableInfo, SqlQueryExpression queryExpression, IQueryPlanNode queryPlan)
void GetData(SerializeData data)
Implements a BINARY object that handles a limited number of bytes, not exceding MaxLength.
static ViewInfo Deserialize(Stream stream)
void SetValue(string key, Type type, object value)
Describes the name of an object within a database.
static void Serialize(ViewInfo viewInfo, BinaryWriter writer)
ObjectName TableName
Gets the fully qualified name of the table that is ensured to be unique within the system...
A node element of a query plan tree. /summary>
ViewInfo(ObjectData data)
object GetValue(string key)
DbObjectType
The kind of objects that can be handled by a database system and its managers
Defines the metadata properties of a table existing within a database.