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.NonCorrelatedAnyAllNode Class Reference
Inheritance diagram for Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode:
Deveel.Data.Sql.Query.BranchQueryPlanNode Deveel.Data.Sql.Query.IQueryPlanNode Deveel.Data.Serialization.ISerializable

Public Member Functions

 NonCorrelatedAnyAllNode (IQueryPlanNode left, IQueryPlanNode right, ObjectName[] leftColumnNames, SqlExpressionType subQueryType)
 
override ITable Evaluate (IRequest context)
 

Protected Member Functions

override void GetData (SerializeData data)
 
- Protected Member Functions inherited from Deveel.Data.Sql.Query.BranchQueryPlanNode
 BranchQueryPlanNode (IQueryPlanNode left, IQueryPlanNode right)
 
 BranchQueryPlanNode (ObjectData data)
 

Properties

ObjectName[] LeftColumnNames [get, private set]
 
SqlExpressionType SubQueryType [get, private set]
 
- Properties inherited from Deveel.Data.Sql.Query.BranchQueryPlanNode
IQueryPlanNode Left [get, private set]
 Gets the left node of the branch query plan node. More...
 
IQueryPlanNode Right [get, private set]
 Gets the right node of the branch query plan node. More...
 

Private Member Functions

 NonCorrelatedAnyAllNode (ObjectData data)
 

Detailed Description

Definition at line 26 of file NonCorrelatedAnyAllNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode.NonCorrelatedAnyAllNode ( IQueryPlanNode  left,
IQueryPlanNode  right,
ObjectName[]  leftColumnNames,
SqlExpressionType  subQueryType 
)
inline

Definition at line 27 of file NonCorrelatedAnyAllNode.cs.

28  : base(left, right) {
29  LeftColumnNames = leftColumnNames;
30  SubQueryType = subQueryType;
31  }
Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode.NonCorrelatedAnyAllNode ( ObjectData  data)
inlineprivate

Definition at line 33 of file NonCorrelatedAnyAllNode.cs.

34  : base(data) {
35  LeftColumnNames = data.GetValue<ObjectName[]>("LeftColumns");
36  SubQueryType = (SqlExpressionType) data.GetInt32("SubQueryType");
37  }
SqlExpressionType
All the possible type of SqlExpression supported

Member Function Documentation

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

Implements Deveel.Data.Sql.Query.BranchQueryPlanNode.

Definition at line 43 of file NonCorrelatedAnyAllNode.cs.

43  {
44  // Solve the left branch result
45  var leftResult = Left.Evaluate(context);
46  // Solve the right branch result
47  var rightResult = Right.Evaluate(context);
48 
49  // Solve the sub query on the left columns with the right plan and the
50  // given operator.
51  return leftResult.SelectAnyAllNonCorrelated(LeftColumnNames, SubQueryType, rightResult);
52  }
IQueryPlanNode Right
Gets the right node of the branch query plan node.
ITable Evaluate(IRequest context)
IQueryPlanNode Left
Gets the left node of the branch query plan node.
override void Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode.GetData ( SerializeData  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Sql.Query.BranchQueryPlanNode.

Definition at line 54 of file NonCorrelatedAnyAllNode.cs.

54  {
55  data.SetValue("LeftColumns", LeftColumnNames);
56  data.SetValue("SubQueryType", (int)SubQueryType);
57  }
void SetValue(string key, Type type, object value)

Property Documentation

ObjectName [] Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode.LeftColumnNames
getprivate set

Definition at line 39 of file NonCorrelatedAnyAllNode.cs.

SqlExpressionType Deveel.Data.Sql.Query.NonCorrelatedAnyAllNode.SubQueryType
getprivate set

Definition at line 41 of file NonCorrelatedAnyAllNode.cs.


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