DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Sql.Query.MarkerNode Class Reference

A marker node that takes the result of a child and marks it as a name that can later be retrieved. More...

Inheritance diagram for Deveel.Data.Sql.Query.MarkerNode:
Deveel.Data.Sql.Query.SingleQueryPlanNode Deveel.Data.Sql.Query.IQueryPlanNode Deveel.Data.Serialization.ISerializable

Public Member Functions

 MarkerNode (IQueryPlanNode child, string markName)
 
override ITable Evaluate (IRequest context)
 

Protected Member Functions

override void GetData (SerializeData data)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Query.SingleQueryPlanNode
 SingleQueryPlanNode (IQueryPlanNode child)
 
 SingleQueryPlanNode (ObjectData data)
 

Properties

string MarkName [get, private set]
 
- Properties inherited from Deveel.Data.Sql.Query.SingleQueryPlanNode
IQueryPlanNode Child [get, private set]
 Gets the single child node of the plan. More...
 

Private Member Functions

 MarkerNode (ObjectData data)
 

Detailed Description

A marker node that takes the result of a child and marks it as a name that can later be retrieved.

This is useful for implementing things such as outer joins.

Definition at line 32 of file MarkerNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.MarkerNode.MarkerNode ( IQueryPlanNode  child,
string  markName 
)
inline

Definition at line 33 of file MarkerNode.cs.

34  : base(child) {
35  MarkName = markName;
36  }
Deveel.Data.Sql.Query.MarkerNode.MarkerNode ( ObjectData  data)
inlineprivate

Definition at line 38 of file MarkerNode.cs.

39  : base(data) {
40  MarkName = data.GetString("Marker");
41  }

Member Function Documentation

override ITable Deveel.Data.Sql.Query.MarkerNode.Evaluate ( IRequest  context)
inlinevirtual

Implements Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 43 of file MarkerNode.cs.

43  {
44  ITable childTable = Child.Evaluate(context);
45  context.Query.CacheTable(MarkName, childTable);
46  return childTable;
47  }
Defines the contract to access the data contained into a table of a database.
Definition: ITable.cs:40
ITable Evaluate(IRequest context)
IQueryPlanNode Child
Gets the single child node of the plan.
override void Deveel.Data.Sql.Query.MarkerNode.GetData ( SerializeData  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 51 of file MarkerNode.cs.

51  {
52  data.SetValue("Marker", MarkName);
53  }
void SetValue(string key, Type type, object value)

Property Documentation

string Deveel.Data.Sql.Query.MarkerNode.MarkName
getprivate set

Definition at line 49 of file MarkerNode.cs.


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