Example #1
0
        public TopNNode(PlanNodeId id, PlanNode source, long count, OrderingScheme orderingScheme, Step step) : base(id)
        {
            ParameterCheck.OutOfRange(count >= 0, "count", "Count must be positive.");
            ParameterCheck.OutOfRange(count <= Int32.MaxValue, "count", $"ORDER BY LIMIT > {Int32.MaxValue} is not supported.");

            this.Source         = source ?? throw new ArgumentNullException("source");
            this.Count          = count;
            this.OrderingScheme = orderingScheme ?? throw new ArgumentNullException("orderingScheme");
            this.Step           = step;
        }
Example #2
0
 public SortNode(PlanNodeId id, PlanNode source, OrderingScheme orderingScheme) : base(id)
 {
     this.Source         = source ?? throw new ArgumentNullException("source");
     this.OrderingScheme = orderingScheme ?? throw new ArgumentNullException("orderingScheme");
 }
Example #3
0
 public Specification(IEnumerable <Symbol> partitionBy, OrderingScheme orderingScheme)
 {
     this.PartitionBy    = partitionBy ?? throw new ArgumentNullException("partitionBy");
     this.OrderingScheme = orderingScheme;
 }