DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | List of all members
Deveel.Data.Sql.Query.QueryPlanSerializers.SimpleSelectNodeSerializer Class Reference
Inheritance diagram for Deveel.Data.Sql.Query.QueryPlanSerializers.SimpleSelectNodeSerializer:
Deveel.Data.Sql.Query.QueryPlanSerializers.QueryPlanNodeSerializer< SimpleSelectNode >

Public Member Functions

override void Serialize (SimpleSelectNode node, BinaryWriter writer)
 
override SimpleSelectNode Deserialize (BinaryReader reader)
 
- Public Member Functions inherited from Deveel.Data.Sql.Query.QueryPlanSerializers.QueryPlanNodeSerializer< SimpleSelectNode >
bool CanSerialize (Type nodeType)
 

Detailed Description

Definition at line 560 of file QueryPlanSerializers.cs.

Member Function Documentation

override SimpleSelectNode Deveel.Data.Sql.Query.QueryPlanSerializers.SimpleSelectNodeSerializer.Deserialize ( BinaryReader  reader)
inline

Definition at line 568 of file QueryPlanSerializers.cs.

568  {
569  var child = ReadChildNode(reader);
570  var columnName = ObjectName.Deserialize(reader);
571  var opType = (SqlExpressionType) reader.ReadByte();
572  var expression = SqlExpression.Deserialize(reader);
573 
574  return new SimpleSelectNode(child, columnName, opType, expression);
575  }
static IQueryPlanNode ReadChildNode(BinaryReader reader)
SqlExpressionType
All the possible type of SqlExpression supported
static SqlExpression Deserialize(BinaryReader reader)
Defines the base class for instances that represent SQL expression tree nodes.
override void Deveel.Data.Sql.Query.QueryPlanSerializers.SimpleSelectNodeSerializer.Serialize ( SimpleSelectNode  node,
BinaryWriter  writer 
)
inline

Definition at line 561 of file QueryPlanSerializers.cs.

561  {
562  WriteChildNode(writer, node.Child);
563  ObjectName.Serialize(node.ColumnName, writer);
564  writer.Write((byte)node.OperatorType);
565  SqlExpression.Serialize(node.Expression, writer);
566  }
static void Serialize(SqlExpression expression, BinaryWriter writer)
Defines the base class for instances that represent SQL expression tree nodes.
static void WriteChildNode(BinaryWriter writer, IQueryPlanNode node)

The documentation for this class was generated from the following file: