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

Public Member Functions

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

Detailed Description

Definition at line 215 of file QueryPlanSerializers.cs.

Member Function Documentation

override CompositeNode Deveel.Data.Sql.Query.QueryPlanSerializers.CompositeNodeSerializer.Deserialize ( BinaryReader  reader)
inline

Definition at line 224 of file QueryPlanSerializers.cs.

224  {
225  var left = ReadChildNode(reader);
226  var right = ReadChildNode(reader);
227  bool all = reader.ReadBoolean();
228  var function = (CompositeFunction) reader.ReadByte();
229 
230  return new CompositeNode(left, right, function, all);
231  }
static IQueryPlanNode ReadChildNode(BinaryReader reader)
CompositeFunction
The kind of composite function in a CompositeTable.
override void Deveel.Data.Sql.Query.QueryPlanSerializers.CompositeNodeSerializer.Serialize ( CompositeNode  node,
BinaryWriter  writer 
)
inline

Definition at line 216 of file QueryPlanSerializers.cs.

216  {
217  WriteChildNode(writer, node.Left);
218  WriteChildNode(writer, node.Right);
219 
220  writer.Write(node.All);
221  writer.Write((byte)node.CompositeFunction);
222  }
static void WriteChildNode(BinaryWriter writer, IQueryPlanNode node)

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