lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject lucenenet git commit: Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState refactor: DocValues > GetDocValues()
Date Tue, 31 Jan 2017 18:38:58 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work 0fc7967cc -> 439a1988a


Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState refactor: DocValues > GetDocValues()


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

Branch: refs/heads/api-work
Commit: 439a1988a1772682e5972e14321a4590b368dfeb
Parents: 0fc7967
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Feb 1 01:38:29 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Feb 1 01:38:29 2017 +0700

----------------------------------------------------------------------
 .../SortedSet/DefaultSortedSetDocValuesReaderState.cs         | 7 ++-----
 .../SortedSet/SortedSetDocValuesFacetCounts.cs                | 2 +-
 .../SortedSet/SortedSetDocValuesReaderState.cs                | 2 +-
 3 files changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/439a1988/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs b/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
index c0715bc..2dfe4c0 100644
--- a/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
+++ b/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
@@ -99,12 +99,9 @@ namespace Lucene.Net.Facet.SortedSet
         /// <summary>
         /// Return top-level doc values.
         /// </summary>
-        public override SortedSetDocValues DocValues // LUCENENET TODO: Make GetDocValues()

+        public override SortedSetDocValues GetDocValues() 
         {
-            get
-            {
-                return topReader.GetSortedSetDocValues(field);
-            }
+            return topReader.GetSortedSetDocValues(field);
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/439a1988/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
index e636416..5e1d0b5 100644
--- a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
+++ b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
@@ -66,7 +66,7 @@ namespace Lucene.Net.Facet.SortedSet
         {
             this.state = state;
             this.field = state.Field;
-            dv = state.DocValues;
+            dv = state.GetDocValues();
             counts = new int[state.Count];
             //System.out.println("field=" + field);
             Count(hits.GetMatchingDocs());

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/439a1988/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
index 0b896c8..495beb4 100644
--- a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
+++ b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
@@ -73,7 +73,7 @@ namespace Lucene.Net.Facet.SortedSet
 
         /// <summary>
         /// Return top-level doc values. </summary>
-        public abstract SortedSetDocValues DocValues { get; } // LUCENENET TODO: Make GetDocValues()

+        public abstract SortedSetDocValues GetDocValues();
 
         /// <summary>
         /// Indexed field we are reading. </summary>


Mime
View raw message