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

Public Member Functions

 SubsetNode (IQueryPlanNode child, ObjectName[] originalColumnNames, ObjectName[] aliasColumnNames)
 
override ITable Evaluate (IRequest context)
 
void SetAliasParentName (ObjectName parentName)
 

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

ObjectName[] OriginalColumnNames [get, private set]
 
ObjectName[] AliasColumnNames [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

 SubsetNode (ObjectData data)
 

Detailed Description

Definition at line 24 of file SubsetNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.SubsetNode.SubsetNode ( IQueryPlanNode  child,
ObjectName[]  originalColumnNames,
ObjectName[]  aliasColumnNames 
)
inline

Definition at line 25 of file SubsetNode.cs.

26  : base(child) {
27  OriginalColumnNames = originalColumnNames;
28  AliasColumnNames = aliasColumnNames;
29  }
Deveel.Data.Sql.Query.SubsetNode.SubsetNode ( ObjectData  data)
inlineprivate

Definition at line 31 of file SubsetNode.cs.

32  : base(data) {
33  OriginalColumnNames = data.GetValue<ObjectName[]>("OriginalColumns");
34  AliasColumnNames = data.GetValue<ObjectName[]>("AliasColumns");
35  }

Member Function Documentation

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

Implements Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 41 of file SubsetNode.cs.

41  {
42  var table = Child.Evaluate(context);
43  return table.Subset(OriginalColumnNames, AliasColumnNames);
44  }
ITable Evaluate(IRequest context)
IQueryPlanNode Child
Gets the single child node of the plan.
override void Deveel.Data.Sql.Query.SubsetNode.GetData ( SerializeData  data)
inlineprotectedvirtual

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

Definition at line 55 of file SubsetNode.cs.

55  {
56  data.SetValue("OriginalColumns", OriginalColumnNames);
57  data.SetValue("AliasColumns", AliasColumnNames);
58  }
void SetValue(string key, Type type, object value)
void Deveel.Data.Sql.Query.SubsetNode.SetAliasParentName ( ObjectName  parentName)
inline

Definition at line 46 of file SubsetNode.cs.

46  {
47  var aliases = new ObjectName[AliasColumnNames.Length];
48  for (int i = 0; i < aliases.Length; i++) {
49  aliases[i] = new ObjectName(parentName, aliases[i].Name);
50  }
51 
52  AliasColumnNames = aliases;
53  }

Property Documentation

ObjectName [] Deveel.Data.Sql.Query.SubsetNode.AliasColumnNames
getprivate set

Definition at line 39 of file SubsetNode.cs.

ObjectName [] Deveel.Data.Sql.Query.SubsetNode.OriginalColumnNames
getprivate set

Definition at line 37 of file SubsetNode.cs.


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