lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [37/50] [abbrv] lucenenet git commit: Lucene.Net.Misc: General housekeeping
Date Sun, 02 Oct 2016 14:35:55 GMT
Lucene.Net.Misc: General housekeeping


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

Branch: refs/heads/master
Commit: b87b60cd7dcdeeb1702674ffd5bd2ee36bfebef5
Parents: b86a504
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Sep 19 00:44:28 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Oct 2 17:45:01 2016 +0700

----------------------------------------------------------------------
 .../Index/Sorter/EarlyTerminatingSortingCollector.cs        | 2 +-
 src/Lucene.Net.Misc/Index/Sorter/Sorter.cs                  | 1 -
 src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs     | 1 -
 src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs      | 6 ------
 src/Lucene.Net.Misc/Misc/TermStats.cs                       | 9 +--------
 5 files changed, 2 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b87b60cd/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs b/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs
index 2555b54..ea0a7fe 100644
--- a/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs
+++ b/src/Lucene.Net.Misc/Index/Sorter/EarlyTerminatingSortingCollector.cs
@@ -114,7 +114,7 @@ namespace Lucene.Net.Index.Sorter
                 throw new CollectionTerminatedException();
             }
         }
-        // LUCENENET TODO: This should be a method because it changes the state of the object
+
         public override AtomicReaderContext NextReader
         {
             set

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b87b60cd/src/Lucene.Net.Misc/Index/Sorter/Sorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/Sorter/Sorter.cs b/src/Lucene.Net.Misc/Index/Sorter/Sorter.cs
index d2c528f..b1994a9 100644
--- a/src/Lucene.Net.Misc/Index/Sorter/Sorter.cs
+++ b/src/Lucene.Net.Misc/Index/Sorter/Sorter.cs
@@ -268,7 +268,6 @@ namespace Lucene.Net.Index.Sorter
             return Sort(reader.MaxDoc, comparator);
         }
 
-        // LUCENENET TODO: Is there a way to make this class generic like in Java?
         private class DocComparatorAnonymousInnerClassHelper : DocComparator
         {
             private readonly Sorter outerInstance;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b87b60cd/src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs b/src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs
index 7b51c9b..f7c1623 100644
--- a/src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs
+++ b/src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs
@@ -1,6 +1,5 @@
 ´╗┐using System;
 using System.Diagnostics;
-using Lucene.Net.Index;
 using Lucene.Net.Search;
 using Lucene.Net.Store;
 using Lucene.Net.Util;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b87b60cd/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs b/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
index 56219a1..dcfb6c7 100644
--- a/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
+++ b/src/Lucene.Net.Misc/Index/Sorter/SortingMergePolicy.cs
@@ -257,12 +257,6 @@ namespace Lucene.Net.Index.Sorter
             @in.Dispose();
         }
 
-        // LUCENENET TODO: Do we need this?
-        //public override void close()
-        //{
-        //    @in.close();
-        //}
-
         public override bool UseCompoundFile(SegmentInfos segments, SegmentCommitInfo newSegment)
         {
             return @in.UseCompoundFile(segments, newSegment);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b87b60cd/src/Lucene.Net.Misc/Misc/TermStats.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Misc/Misc/TermStats.cs b/src/Lucene.Net.Misc/Misc/TermStats.cs
index cd59930..49cdee5 100644
--- a/src/Lucene.Net.Misc/Misc/TermStats.cs
+++ b/src/Lucene.Net.Misc/Misc/TermStats.cs
@@ -1,5 +1,4 @@
 ´╗┐using Lucene.Net.Util;
-using System;
 
 namespace Lucene.Net.Misc
 {
@@ -24,7 +23,7 @@ namespace Lucene.Net.Misc
     /// Holder for a term along with its statistics
     /// (<seealso cref="#docFreq"/> and <seealso cref="#totalTermFreq"/>).
     /// </summary>
-    public sealed class TermStats : IComparable<TermStats>
+    public sealed class TermStats
     {
         internal readonly BytesRef termtext;
         public string Field { get; set; }
@@ -51,11 +50,5 @@ namespace Lucene.Net.Misc
         {
             return ("TermStats: Term=" + termtext.Utf8ToString() + " DocFreq=" + DocFreq
+ " TotalTermFreq=" + TotalTermFreq);
         }
-
-        public int CompareTo(TermStats other)
-        {
-            // LUCENENET TODO: Implement
-            throw new NotImplementedException();
-        }
     }
 }
\ No newline at end of file


Mime
View raw message