Esempio n. 1
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if ((obj == null) || (this.GetType() != obj.GetType()))
            {
                return(false);
            }

            WindowFrame Other = (WindowFrame)obj;

            return(Object.Equals(this.Type, Other.Type) &&
                   Object.Equals(this.Start, Other.Start) &&
                   Object.Equals(this.End, Other.End));
        }
Esempio n. 2
0
 public Window(NodeLocation location, IEnumerable <object> partitionBy, OrderBy orderBy, WindowFrame frame) : base(location)
 {
     this.PartitionBy = partitionBy ?? throw new ArgumentNullException("partitionBy");
     this.OrderBy     = orderBy; // These are actually optional ?? throw new ArgumentNullException("orderBy");
     this.Frame       = frame;   // These are actually optional ?? throw new ArgumentNullException("frame");
 }
Esempio n. 3
0
 public Window(IEnumerable <object> partitionBy, OrderBy orderBy, WindowFrame frame) : this(null, partitionBy, orderBy, frame)
 {
 }