lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [15/28] lucenenet git commit: Lucene.Net.Grouping.AbstractGroupFacetCollector: changed parameter and return types from List<T> to IList<T>
Date Wed, 01 Feb 2017 10:22:12 GMT
Lucene.Net.Grouping.AbstractGroupFacetCollector: changed parameter and return types from List<T>
to IList<T>


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

Branch: refs/heads/api-work
Commit: 885c960be63a8d65baa352d87b747a3f9d002040
Parents: 8667326
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Feb 1 14:14:54 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Feb 1 14:14:54 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs   | 2 +-
 src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/885c960b/src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs b/src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
index 7cf3222..7e2f6db 100644
--- a/src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
+++ b/src/Lucene.Net.Grouping/AbstractGroupFacetCollector.cs
@@ -204,7 +204,7 @@ namespace Lucene.Net.Search.Grouping
             /// <param name="offset">The offset in the collected facet entries during
merging</param>
             /// <param name="limit">The number of facets to return starting from the
offset.</param>
             /// <returns>a list of facet entries to be rendered based on the specified
offset and limit</returns>
-            public virtual List<FacetEntry> GetFacetEntries(int offset, int limit)
+            public virtual IList<FacetEntry> GetFacetEntries(int offset, int limit)
             {
                 List<FacetEntry> entries = new List<FacetEntry>();
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/885c960b/src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs b/src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs
index 6e21bd9..a1439d3 100644
--- a/src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs
+++ b/src/Lucene.Net.Tests.Grouping/GroupFacetCollectorTest.cs
@@ -87,7 +87,7 @@ namespace Lucene.Net.Search.Grouping
 
             IndexSearcher indexSearcher = NewSearcher(w.Reader);
 
-            List<TermGroupFacetCollector.FacetEntry> entries = null;
+            IList<TermGroupFacetCollector.FacetEntry> entries = null;
             AbstractGroupFacetCollector groupedAirportFacetCollector = null;
             TermGroupFacetCollector.GroupedFacetResult airportResult = null;
 
@@ -348,7 +348,7 @@ namespace Lucene.Net.Search.Grouping
             assertEquals(3, airportResult.TotalCount);
             assertEquals(1, airportResult.TotalMissingCount);
 
-            List<TermGroupFacetCollector.FacetEntry> entries = airportResult.GetFacetEntries(0,
10);
+            IList<TermGroupFacetCollector.FacetEntry> entries = airportResult.GetFacetEntries(0,
10);
             assertEquals(2, entries.size());
             assertEquals("ams", entries[0].Value.Utf8ToString());
             assertEquals(2, entries[0].Count);
@@ -423,8 +423,8 @@ namespace Lucene.Net.Search.Grouping
                     searcher.Search(new TermQuery(new Term("content", searchTerm)), groupFacetCollector);
                     TermGroupFacetCollector.GroupedFacetResult actualFacetResult = groupFacetCollector.MergeSegmentResults(size,
minCount, orderByCount);
 
-                    List<TermGroupFacetCollector.FacetEntry> expectedFacetEntries =
expectedFacetResult.GetFacetEntries();
-                    List<TermGroupFacetCollector.FacetEntry> actualFacetEntries = actualFacetResult.GetFacetEntries(offset,
limit);
+                    IList<TermGroupFacetCollector.FacetEntry> expectedFacetEntries
= expectedFacetResult.GetFacetEntries();
+                    IList<TermGroupFacetCollector.FacetEntry> actualFacetEntries =
actualFacetResult.GetFacetEntries(offset, limit);
 
                     if (VERBOSE)
                     {


Mime
View raw message