You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/10/02 15:02:31 UTC
[05/10] lucenenet git commit: Completed implementation of
Analysis.Compound.Hyphenation.TernaryTree.PrintStats()
Completed implementation of Analysis.Compound.Hyphenation.TernaryTree.PrintStats()
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/220e0fb3
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/220e0fb3
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/220e0fb3
Branch: refs/heads/master
Commit: 220e0fb3464334a532f232cf0aac7f647b2b73a4
Parents: 01fb360
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Tue Sep 27 18:24:48 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Oct 2 21:44:05 2016 +0700
----------------------------------------------------------------------
.../Compound/hyphenation/TernaryTree.cs | 31 ++++++++++----------
1 file changed, 15 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/220e0fb3/src/Lucene.Net.Analysis.Common/Analysis/Compound/hyphenation/TernaryTree.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Compound/hyphenation/TernaryTree.cs b/src/Lucene.Net.Analysis.Common/Analysis/Compound/hyphenation/TernaryTree.cs
index dc983b4..88cfd01 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Compound/hyphenation/TernaryTree.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Compound/hyphenation/TernaryTree.cs
@@ -1,6 +1,7 @@
\ufeffusing System;
using System.Collections;
using System.Collections.Generic;
+using System.IO;
using System.Text;
namespace Lucene.Net.Analysis.Compound.Hyphenation
@@ -782,22 +783,20 @@ namespace Lucene.Net.Analysis.Compound.Hyphenation
#endregion
}
- // LUCENENET: Not sure we really need this
- // public virtual void printStats(PrintStream @out)
- // {
- //@out.println("Number of keys = " + Convert.ToString(length));
- //@out.println("Node count = " + Convert.ToString(freenode));
- //// System.out.println("Array length = " + Integer.toString(eq.length));
- //@out.println("Key Array length = " + Convert.ToString(kv.length()));
-
- ///*
- // * for(int i=0; i<kv.length(); i++) if ( kv.get(i) != 0 )
- // * System.out.print(kv.get(i)); else System.out.println("");
- // * System.out.println("Keys:"); for(Enumeration enum = keys();
- // * enum.hasMoreElements(); ) System.out.println(enum.nextElement());
- // */
-
- // }
+ public virtual void PrintStats(TextWriter @out)
+ {
+ @out.WriteLine("Number of keys = " + Convert.ToString(length));
+ @out.WriteLine("Node count = " + Convert.ToString(freenode));
+ // System.out.println("Array length = " + Integer.toString(eq.length));
+ @out.WriteLine("Key Array length = " + Convert.ToString(kv.Length()));
+
+ /*
+ * for(int i=0; i<kv.length(); i++) if ( kv.get(i) != 0 )
+ * System.out.print(kv.get(i)); else System.out.println("");
+ * System.out.println("Keys:"); for(Enumeration enum = keys();
+ * enum.hasMoreElements(); ) System.out.println(enum.nextElement());
+ */
+ }
/*
public static void main(String[] args) {
TernaryTree tt = new TernaryTree();