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

Public Member Functions

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

Detailed Description

Definition at line 400 of file QueryPlanSerializers.cs.

Member Function Documentation

override JoinNode Deveel.Data.Sql.Query.QueryPlanSerializers.JoinNodeSerializer.Deserialize ( BinaryReader  reader)
inline

Definition at line 412 of file QueryPlanSerializers.cs.

412  {
413  var left = ReadChildNode(reader);
414  var right = ReadChildNode(reader);
415 
416  var leftColumnName = ObjectName.Deserialize(reader);
417  var op = (SqlExpressionType) reader.ReadByte();
418  var rightExpression = SqlExpression.Deserialize(reader);
419 
420  return new JoinNode(left, right, leftColumnName, op, rightExpression);
421  }
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.JoinNodeSerializer.Serialize ( JoinNode  node,
BinaryWriter  writer 
)
inline

Definition at line 401 of file QueryPlanSerializers.cs.

401  {
402  WriteChildNode(writer, node.Left);
403  WriteChildNode(writer, node.Right);
404 
405  ObjectName.Serialize(node.LeftColumnName, writer);
406 
407  writer.Write((byte)node.Operator);
408 
409  SqlExpression.Serialize(node.RightExpression, writer);
410  }
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: