lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r779741 - in /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search: FieldCache.cs FieldSortedHitQueue.cs Function/OrdFieldSource.cs Function/ReverseOrdFieldSource.cs
Date Thu, 28 May 2009 19:49:07 GMT
Author: digy
Date: Thu May 28 19:49:07 2009
New Revision: 779741

URL: http://svn.apache.org/viewvc?rev=779741&view=rev
Log:
LUCENENET-182 - Public fields of StringIndex class should have C# like names

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldCache.cs?rev=779741&r1=779740&r2=779741&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldCache.cs Thu May 28 19:49:07
2009
@@ -38,16 +38,16 @@
 	{
 		
 		/// <summary>All the term values, in natural order. </summary>
-		public System.String[] lookup;
+		public System.String[] Lookup;
 		
 		/// <summary>For each document, an index into the lookup array. </summary>
-		public int[] order;
+		public int[] Order;
 		
 		/// <summary>Creates one of these objects </summary>
 		public StringIndex(int[] values, System.String[] lookup)
 		{
-			this.order = values;
-			this.lookup = lookup;
+			this.Order = values;
+			this.Lookup = lookup;
 		}
 	}
 	public struct FieldCache_Fields{

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/FieldSortedHitQueue.cs?rev=779741&r1=779740&r2=779741&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/FieldSortedHitQueue.cs Thu May 28
19:49:07 2009
@@ -239,8 +239,8 @@
 			
 			public int Compare(ScoreDoc i, ScoreDoc j)
 			{
-				int fi = index.order[i.doc];
-				int fj = index.order[j.doc];
+				int fi = index.Order[i.doc];
+				int fj = index.Order[j.doc];
 				if (fi < fj)
 					return - 1;
 				if (fi > fj)
@@ -250,7 +250,7 @@
 			
 			public virtual System.IComparable SortValue(ScoreDoc i)
 			{
-				return index.lookup[index.order[i.doc]];
+				return index.Lookup[index.Order[i.doc]];
 			}
 			
 			public virtual int SortType()

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Function/OrdFieldSource.cs?rev=779741&r1=779740&r2=779741&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/OrdFieldSource.cs Thu May
28 19:49:07 2009
@@ -112,7 +112,7 @@
 		/*(non-Javadoc) @see Lucene.Net.Search.Function.ValueSource#getValues(Lucene.Net.Index.IndexReader)
*/
 		public override DocValues GetValues(IndexReader reader)
 		{
-			int[] arr = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader, field).order;
+			int[] arr = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader, field).Order;
 			return new AnonymousClassDocValues(arr, this);
 		}
 		

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs?rev=779741&r1=779740&r2=779741&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
(original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/Function/ReverseOrdFieldSource.cs
Thu May 28 19:49:07 2009
@@ -122,8 +122,8 @@
 		{
 			Lucene.Net.Search.StringIndex sindex = Lucene.Net.Search.FieldCache_Fields.DEFAULT.GetStringIndex(reader,
field);
 			
-			int[] arr = sindex.order;
-			int end = sindex.lookup.Length;
+			int[] arr = sindex.Order;
+			int end = sindex.Lookup.Length;
 			
 			return new AnonymousClassDocValues(end, arr, this);
 		}



Mime
View raw message