Beispiel #1
0
        internal bool Equals(OlapEtlConfiguration other)
        {
            if (other == null ||
                RunFrequency != other.RunFrequency ||
                CustomPartitionValue != other.CustomPartitionValue)
            {
                return(false);
            }

            return(EnumerableExtension.ContentEquals(OlapTables, other.OlapTables));
        }
Beispiel #2
0
        public virtual bool Equals(IndexQueryBase other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(PageSizeSet.Equals(other.PageSizeSet) &&
                   string.Equals(Query, other.Query) &&
                   Start == other.Start &&
                   IsDistinct == other.IsDistinct &&
                   EnumerableExtension.ContentEquals(FieldsToFetch, other.FieldsToFetch) &&
                   WaitForNonStaleResultsTimeout == other.WaitForNonStaleResultsTimeout &&
                   WaitForNonStaleResultsAsOfNow.Equals(other.WaitForNonStaleResultsAsOfNow) &&
                   WaitForNonStaleResults.Equals(other.WaitForNonStaleResults) &&
                   Equals(CutoffEtag, other.CutoffEtag) &&
                   string.Equals(DefaultField, other.DefaultField) &&
                   DefaultOperator == other.DefaultOperator);
        }
Beispiel #3
0
 public TableReference FindReference(AbstractCollection collection, List <string> columns)
 {
     return(References.FirstOrDefault(x => x.Table == collection.SourceTableName &&
                                      x.Schema == collection.SourceTableSchema &&
                                      EnumerableExtension.ContentEquals(x.Columns, columns)));
 }