lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [55/58] [abbrv] lucenenet git commit: Grouping refactor: AbstractAllGroupHeadsCollector.GetCollectedGroupHeads() -> CollectedGroupHeads (property)
Date Thu, 10 Nov 2016 11:34:06 GMT
Grouping refactor: AbstractAllGroupHeadsCollector.GetCollectedGroupHeads() -> CollectedGroupHeads
(property)


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/04f4013d
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/04f4013d
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/04f4013d

Branch: refs/heads/grouping
Commit: 04f4013d8304d1809238b99a01cec2c65bbe6e82
Parents: 049718c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Nov 7 22:43:55 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Nov 8 02:48:34 2016 +0700

----------------------------------------------------------------------
 .../AbstractAllGroupHeadsCollector.cs               |  8 ++++----
 .../Function/FunctionAllGroupHeadsCollector.cs      |  4 ++--
 .../Term/TermAllGroupHeadsCollector.cs              | 16 ++++++++--------
 3 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/04f4013d/src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs b/src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs
index bf3d984..190fb82 100644
--- a/src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs
+++ b/src/Lucene.Net.Grouping/AbstractAllGroupHeadsCollector.cs
@@ -49,7 +49,7 @@ namespace Lucene.Net.Search.Grouping
         {
             FixedBitSet bitSet = new FixedBitSet(maxDoc);
 
-            ICollection<GH> groupHeads = GetCollectedGroupHeads();
+            ICollection<GH> groupHeads = CollectedGroupHeads;
             foreach (GH groupHead in groupHeads)
             {
                 bitSet.Set(groupHead.Doc);
@@ -64,7 +64,7 @@ namespace Lucene.Net.Search.Grouping
         /// <returns>an int array containing all group heads. The size of the array
is equal to number of collected unique groups.</returns>
         public override int[] RetrieveGroupHeads()
         {
-            ICollection<GH> groupHeads = GetCollectedGroupHeads();
+            ICollection<GH> groupHeads = CollectedGroupHeads;
             int[] docHeads = new int[groupHeads.Count];
 
             int i = 0;
@@ -84,7 +84,7 @@ namespace Lucene.Net.Search.Grouping
         {
             get
             {
-                return GetCollectedGroupHeads().Count;
+                return CollectedGroupHeads.Count;
             }
         }
 
@@ -105,7 +105,7 @@ namespace Lucene.Net.Search.Grouping
         /// Subsequent calls should return the same group heads.
         /// </summary>
         /// <returns>the collected group heads</returns>
-        protected abstract ICollection<GH> GetCollectedGroupHeads();
+        protected abstract ICollection<GH> CollectedGroupHeads { get; }
 
         public override void Collect(int doc)
         {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/04f4013d/src/Lucene.Net.Grouping/Function/FunctionAllGroupHeadsCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/Function/FunctionAllGroupHeadsCollector.cs b/src/Lucene.Net.Grouping/Function/FunctionAllGroupHeadsCollector.cs
index 70a2033..f9e7d0b 100644
--- a/src/Lucene.Net.Grouping/Function/FunctionAllGroupHeadsCollector.cs
+++ b/src/Lucene.Net.Grouping/Function/FunctionAllGroupHeadsCollector.cs
@@ -80,9 +80,9 @@ namespace Lucene.Net.Search.Grouping.Function
             this.temporalResult.groupHead = groupHead;
         }
 
-        protected override ICollection<GroupHead> GetCollectedGroupHeads()
+        protected override ICollection<GroupHead> CollectedGroupHeads
         {
-            return groups.Values;
+            get { return groups.Values; }
         }
 
         public override Scorer Scorer

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/04f4013d/src/Lucene.Net.Grouping/Term/TermAllGroupHeadsCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/Term/TermAllGroupHeadsCollector.cs b/src/Lucene.Net.Grouping/Term/TermAllGroupHeadsCollector.cs
index 175dd0a..a89712d 100644
--- a/src/Lucene.Net.Grouping/Term/TermAllGroupHeadsCollector.cs
+++ b/src/Lucene.Net.Grouping/Term/TermAllGroupHeadsCollector.cs
@@ -185,9 +185,9 @@ namespace Lucene.Net.Search.Grouping.Terms
             temporalResult.groupHead = groupHead;
         }
 
-        protected override ICollection<GroupHead> GetCollectedGroupHeads()
+        protected override ICollection<GroupHead> CollectedGroupHeads
         {
-            return groups.Values;
+            get { return groups.Values; }
         }
 
         public override AtomicReaderContext NextReader
@@ -295,9 +295,9 @@ namespace Lucene.Net.Search.Grouping.Terms
             }
         }
 
-        protected override ICollection<GroupHead> GetCollectedGroupHeads()
+        protected override ICollection<GroupHead> CollectedGroupHeads
         {
-            return collectedGroups;
+            get { return collectedGroups; }
         }
 
         public override Scorer Scorer
@@ -527,9 +527,9 @@ namespace Lucene.Net.Search.Grouping.Terms
             }
         }
 
-        protected override ICollection<GroupHead> GetCollectedGroupHeads()
+        protected override ICollection<GroupHead> CollectedGroupHeads
         {
-            return collectedGroups;
+            get { return collectedGroups; }
         }
 
         public override Scorer Scorer
@@ -716,9 +716,9 @@ namespace Lucene.Net.Search.Grouping.Terms
             }
         }
 
-        protected override ICollection<GroupHead> GetCollectedGroupHeads()
+        protected override ICollection<GroupHead> CollectedGroupHeads
         {
-            return collectedGroups;
+            get { return collectedGroups; }
         }
 
         public override Scorer Scorer


Mime
View raw message