Ejemplo n.º 1
0
 private void CopyMembers(TableStatistics old)
 {
     this.table     = old.table;
     this.binCount  = old.binCount;
     this.keyColumn = old.keyColumn;
     this.keyValue  = new List <double>(old.keyValue);
     this.keyCount  = new List <long>(old.keyCount);
     this.rowCount  = old.rowCount;
 }
Ejemplo n.º 2
0
        private void InitializeMembers()
        {
            this.alias = null;

            this.isTableOrView = false;
            this.isUdf         = false;
            this.isSubquery    = false;
            this.isComputed    = false;

            this.columnReferences = new List <ColumnReference>();
            this.statistics       = null;
        }
Ejemplo n.º 3
0
        private void CopyMembers(TableReference old)
        {
            this.alias = old.alias;

            this.isTableOrView = old.isTableOrView;
            this.isUdf         = old.isUdf;
            this.isSubquery    = old.isSubquery;
            this.isComputed    = old.isComputed;

            // Deep copy of column references
            this.columnReferences = new List <ColumnReference>();
            foreach (var cr in old.columnReferences)
            {
                var ncr = new ColumnReference(cr)
                {
                    TableReference = this
                };
                this.columnReferences.Add(ncr);
            }
            this.statistics = old.statistics == null ? null : new TableStatistics(old.statistics);
        }
Ejemplo n.º 4
0
 public TableStatistics(TableStatistics old)
 {
     CopyMembers(old);
 }