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

Public Member Functions

 DistinctNode (IQueryPlanNode child, ObjectName[] columnNames)
 
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

ObjectName[] ColumnNames [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

 DistinctNode (ObjectData data)
 

Detailed Description

Definition at line 24 of file DistinctNode.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Query.DistinctNode.DistinctNode ( IQueryPlanNode  child,
ObjectName[]  columnNames 
)
inline

Definition at line 25 of file DistinctNode.cs.

26  : base(child) {
27  ColumnNames = columnNames;
28  }
Deveel.Data.Sql.Query.DistinctNode.DistinctNode ( ObjectData  data)
inlineprivate

Definition at line 30 of file DistinctNode.cs.

31  : base(data) {
32  ColumnNames = data.GetValue<ObjectName[]>("Columns");
33  }

Member Function Documentation

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

Implements Deveel.Data.Sql.Query.SingleQueryPlanNode.

Definition at line 37 of file DistinctNode.cs.

37  {
38  var table = Child.Evaluate(context);
39  return table.DistinctBy(ColumnNames);
40  }
ITable Evaluate(IRequest context)
IQueryPlanNode Child
Gets the single child node of the plan.
override void Deveel.Data.Sql.Query.DistinctNode.GetData ( SerializeData  data)
inlineprotectedvirtual

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

Definition at line 42 of file DistinctNode.cs.

42  {
43  data.SetValue("Columns", ColumnNames);
44  }
void SetValue(string key, Type type, object value)

Property Documentation

ObjectName [] Deveel.Data.Sql.Query.DistinctNode.ColumnNames
getprivate set

Definition at line 35 of file DistinctNode.cs.


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