コード例 #1
0
ファイル: IndexQuery.cs プロジェクト: mow/ravendb
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PageSizeSet.GetHashCode();
         hashCode = (hashCode * 397) ^ (Query != null ? Query.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TotalSize != null ? TotalSize.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TransformerParameters != null ? TransformerParameters.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Start;
         hashCode = (hashCode * 397) ^ (IsDistinct ? 1 : 0);
         hashCode = (hashCode * 397) ^ (FieldsToFetch != null ? FieldsToFetch.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SortedFields != null ? SortedFields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SortHints != null ? SortHints.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Cutoff.GetHashCode();
         hashCode = (hashCode * 397) ^ WaitForNonStaleResultsAsOfNow.GetHashCode();
         hashCode = (hashCode * 397) ^ (CutoffEtag != null ? CutoffEtag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DefaultField != null ? DefaultField.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)DefaultOperator;
         hashCode = (hashCode * 397) ^ (SkippedResults != null ? SkippedResults.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DebugOptionGetIndexEntries.GetHashCode();
         hashCode = (hashCode * 397) ^ (HighlightedFields != null ? HighlightedFields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlighterPreTags != null ? HighlighterPreTags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlighterPostTags != null ? HighlighterPostTags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlighterKeyName != null ? HighlighterKeyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ResultsTransformer != null ? ResultsTransformer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ShowTimings ? 1 : 0);
         hashCode = (hashCode * 397) ^ DisableCaching.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: IndexQuery.cs プロジェクト: mow/ravendb
 public bool Equals(IndexQuery other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(PageSizeSet.Equals(other.PageSizeSet) &&
            String.Equals(Query, other.Query) &&
            Equals(TotalSize, other.TotalSize) &&
            Equals(TransformerParameters, other.TransformerParameters) &&
            Start == other.Start &&
            Equals(IsDistinct, other.IsDistinct) &&
            Equals(FieldsToFetch, other.FieldsToFetch) &&
            Equals(SortedFields, other.SortedFields) &&
            Equals(SortHints, other.SortHints) &&
            Cutoff.Equals(other.Cutoff) &&
            WaitForNonStaleResultsAsOfNow.Equals(other.WaitForNonStaleResultsAsOfNow) &&
            WaitForNonStaleResults.Equals(other.WaitForNonStaleResults) &&
            Equals(CutoffEtag, other.CutoffEtag) &&
            String.Equals(DefaultField, other.DefaultField) &&
            DefaultOperator == other.DefaultOperator &&
            Equals(SkippedResults, other.SkippedResults) &&
            DebugOptionGetIndexEntries.Equals(other.DebugOptionGetIndexEntries) &&
            Equals(HighlightedFields, other.HighlightedFields) &&
            Equals(HighlighterPreTags, other.HighlighterPreTags) &&
            Equals(HighlighterPostTags, other.HighlighterPostTags) &&
            Equals(HighlighterKeyName, other.HighlighterKeyName) &&
            String.Equals(ResultsTransformer, other.ResultsTransformer) &&
            ShowTimings == other.ShowTimings &&
            DisableCaching.Equals(other.DisableCaching));
 }
コード例 #3
0
ファイル: IndexQuery.cs プロジェクト: ybdev/ravendb
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PageSizeSet.GetHashCode();
         hashCode = (hashCode * 397) ^ (Query != null ? Query.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TotalSize != null ? TotalSize.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (QueryInputs != null ? QueryInputs.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Start;
         hashCode = (hashCode * 397) ^ (int)AggregationOperation;
         hashCode = (hashCode * 397) ^ (GroupBy != null ? GroupBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FieldsToFetch != null ? FieldsToFetch.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SortedFields != null ? SortedFields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Cutoff.GetHashCode();
         hashCode = (hashCode * 397) ^ (CutoffEtag != null ? CutoffEtag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DefaultField != null ? DefaultField.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)DefaultOperator;
         hashCode = (hashCode * 397) ^ SkipTransformResults.GetHashCode();
         hashCode = (hashCode * 397) ^ (SkippedResults != null ? SkippedResults.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DebugOptionGetIndexEntries.GetHashCode();
         hashCode = (hashCode * 397) ^ (HighlightedFields != null ? HighlightedFields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlighterPreTags != null ? HighlighterPreTags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlighterPostTags != null ? HighlighterPostTags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ResultsTransformer != null ? ResultsTransformer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DisableCaching.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
ファイル: IndexQuery.cs プロジェクト: ybdev/ravendb
 public bool Equals(IndexQuery other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(PageSizeSet.Equals(other.PageSizeSet) &&
            String.Equals(Query, other.Query) &&
            Equals(TotalSize, other.TotalSize) &&
            Equals(QueryInputs, other.QueryInputs) &&
            Start == other.Start &&
            AggregationOperation == other.AggregationOperation &&
            Equals(GroupBy, other.GroupBy) &&
            Equals(FieldsToFetch, other.FieldsToFetch) &&
            Equals(SortedFields, other.SortedFields) &&
            Cutoff.Equals(other.Cutoff) &&
            Equals(CutoffEtag, other.CutoffEtag) &&
            String.Equals(DefaultField, other.DefaultField) &&
            DefaultOperator == other.DefaultOperator &&
            SkipTransformResults.Equals(other.SkipTransformResults) &&
            Equals(SkippedResults, other.SkippedResults) &&
            DebugOptionGetIndexEntries.Equals(other.DebugOptionGetIndexEntries) &&
            Equals(HighlightedFields, other.HighlightedFields) &&
            Equals(HighlighterPreTags, other.HighlighterPreTags) &&
            Equals(HighlighterPostTags, other.HighlighterPostTags) &&
            String.Equals(ResultsTransformer, other.ResultsTransformer) &&
            DisableCaching.Equals(other.DisableCaching));
 }
コード例 #5
0
ファイル: IndexQuery.cs プロジェクト: Danielle9897/ravendb
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PageSizeSet.GetHashCode();
         hashCode = (hashCode * 397) ^ (Query?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Start;
         hashCode = (hashCode * 397) ^ (IsDistinct ? 1 : 0);
         hashCode = (hashCode * 397) ^ (FieldsToFetch?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (WaitForNonStaleResultsTimeout != null ? WaitForNonStaleResultsTimeout.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ WaitForNonStaleResultsAsOfNow.GetHashCode();
         hashCode = (hashCode * 397) ^ (CutoffEtag != null ? CutoffEtag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DefaultField?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)DefaultOperator;
         return(hashCode);
     }
 }
コード例 #6
0
ファイル: IndexQuery.cs プロジェクト: Danielle9897/ravendb
        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);
        }