lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [Lucene.Net] svn commit: r1102015 - in /incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core: Index/IndexFileDeleter.cs Search/DisjunctionMaxQuery.cs Store/BufferedIndexInput.cs
Date Wed, 11 May 2011 18:47:07 GMT
Author: digy
Date: Wed May 11 18:47:07 2011
New Revision: 1102015

URL: http://svn.apache.org/viewvc?rev=1102015&view=rev
Log:
[LUCENENET-412]

Modified:
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Index/IndexFileDeleter.cs
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/DisjunctionMaxQuery.cs
    incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Store/BufferedIndexInput.cs

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Index/IndexFileDeleter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Index/IndexFileDeleter.cs?rev=1102015&r1=1102014&r2=1102015&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Index/IndexFileDeleter.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Index/IndexFileDeleter.cs Wed
May 11 18:47:07 2011
@@ -728,13 +728,13 @@ namespace Lucene.Net.Index
 			internal System.String segmentsFileName;
 			internal bool deleted;
 			internal Directory directory;
-			internal System.Collections.ICollection commitsToDelete;
+			internal IList<CommitPoint> commitsToDelete;
 			internal long version;
 			internal long generation;
 			internal bool isOptimized;
             internal IDictionary<string, string> userData;
-			
-			public CommitPoint(IndexFileDeleter enclosingInstance, System.Collections.ICollection
commitsToDelete, Directory directory, SegmentInfos segmentInfos)
+
+            public CommitPoint(IndexFileDeleter enclosingInstance, IList<CommitPoint>
commitsToDelete, Directory directory, SegmentInfos segmentInfos)
 			{
 				InitBlock(enclosingInstance);
 				this.directory = directory;

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/DisjunctionMaxQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/DisjunctionMaxQuery.cs?rev=1102015&r1=1102014&r2=1102015&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/DisjunctionMaxQuery.cs
(original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Search/DisjunctionMaxQuery.cs
Wed May 11 18:47:07 2011
@@ -62,7 +62,7 @@ namespace Lucene.Net.Search
 		/// </param>
 		/// <param name="tieBreakerMultiplier">  the weight to give to each matching non-maximum
disjunct
 		/// </param>
-		public DisjunctionMaxQuery(System.Collections.ICollection disjuncts, float tieBreakerMultiplier)
+		public DisjunctionMaxQuery(IList<Query> disjuncts, float tieBreakerMultiplier)
 		{
 			this.tieBreakerMultiplier = tieBreakerMultiplier;
 			Add(disjuncts);
@@ -79,7 +79,7 @@ namespace Lucene.Net.Search
 		/// <summary>Add a collection of disjuncts to this disjunction
 		/// via Iterable
 		/// </summary>
-		public virtual void  Add(System.Collections.ICollection disjuncts)
+        public virtual void Add(IList<Query> disjuncts)
 		{
 			this.disjuncts.AddRange(disjuncts);
 		}

Modified: incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Store/BufferedIndexInput.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Store/BufferedIndexInput.cs?rev=1102015&r1=1102014&r2=1102015&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Store/BufferedIndexInput.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_2_9_4g/src/core/Store/BufferedIndexInput.cs Wed
May 11 18:47:07 2011
@@ -23,9 +23,8 @@ namespace Lucene.Net.Store
 	/// <summary>Base implementation class for buffered {@link IndexInput}. </summary>
 	public abstract class BufferedIndexInput:IndexInput, System.ICloneable
 	{
-		
-		/// <summary>Default buffer size </summary>
-		public const int BUFFER_SIZE = 1024;
+        /// <summary>Default buffer size </summary>
+        public const int BUFFER_SIZE = 1024 * 4; // public const int BUFFER_SIZE = 1024;
 //DIGY:  Java version is 1K, but 4K gives better results.
 		
 		private int bufferSize = BUFFER_SIZE;
 		



Mime
View raw message