geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ash...@apache.org
Subject incubator-geode git commit: GEODE-11: Remove ResultType from LuceneResultStruct
Date Mon, 28 Sep 2015 21:37:46 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-11 fe4b341e4 -> a387c7c7e


GEODE-11: Remove ResultType from LuceneResultStruct

This code could have been removed in commit db5db7a1: Removing ResultType from
LuceneQueryFactory.


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

Branch: refs/heads/feature/GEODE-11
Commit: a387c7c7e5168bff0c2d92162d30c4361b02c9f6
Parents: fe4b341
Author: Ashvin Agrawal <ashvin@apache.org>
Authored: Mon Sep 28 11:23:16 2015 -0700
Committer: Ashvin Agrawal <ashvin@apache.org>
Committed: Mon Sep 28 14:32:50 2015 -0700

----------------------------------------------------------------------
 .../com/gemstone/gemfire/cache/lucene/LuceneIndex.java |  6 ------
 .../gemfire/cache/lucene/LuceneResultStruct.java       | 13 -------------
 .../cache/lucene/internal/LuceneResultStructImpl.java  | 10 ----------
 .../distributed/LuceneFunctionReadPathDUnitTest.java   |  1 -
 4 files changed, 30 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/a387c7c7/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneIndex.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneIndex.java
b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneIndex.java
index 328eed8..fc9752a 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneIndex.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneIndex.java
@@ -8,16 +8,10 @@
 
 package com.gemstone.gemfire.cache.lucene;
 
-import java.util.Collection;
 import java.util.Map;
-import java.util.Set;
 
 import org.apache.lucene.analysis.Analyzer;
 
-import com.gemstone.gemfire.cache.execute.RegionFunctionContext;
-import com.gemstone.gemfire.cache.lucene.internal.repository.IndexRepository;
-import com.gemstone.gemfire.internal.cache.BucketNotFoundException;
-
 
 /**
  * An lucene index is built over the data stored in a GemFire Region.

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/a387c7c7/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneResultStruct.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneResultStruct.java
b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneResultStruct.java
index 75ac0a1..6ed0b99 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneResultStruct.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneResultStruct.java
@@ -41,18 +41,5 @@ public interface LuceneResultStruct<K, V> {
    * @throws IllegalArgumentException If this struct does not contain score
    */
   public float getScore();
-  
-  /**
-   * Get the types of values ordered list
-   * Item in the list could be either ResultType, or field name
-   * @return the array of result types
-   */
-  public Object[] getNames();
-  
-  /**
-   * Get the values in same order as result types
-   * @return the array of values
-   */
-  public Object[] getResultValues();
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/a387c7c7/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneResultStructImpl.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneResultStructImpl.java
b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneResultStructImpl.java
index 6417675..35cf086 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneResultStructImpl.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneResultStructImpl.java
@@ -34,16 +34,6 @@ public class LuceneResultStructImpl<K,V> implements LuceneResultStruct<K,V>
{
   }
 
   @Override
-  public Object[] getNames() {
-    throw new UnsupportedOperationException();
-  }
-
-  @Override
-  public Object[] getResultValues() {
-    throw new UnsupportedOperationException();
-  }
-
-  @Override
   public int hashCode() {
     final int prime = 31;
     int result = 1;

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/a387c7c7/gemfire-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
b/gemfire-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
index 27407d3..b37be14 100644
--- a/gemfire-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
+++ b/gemfire-lucene/src/test/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunctionReadPathDUnitTest.java
@@ -23,7 +23,6 @@ import com.gemstone.gemfire.cache.lucene.LuceneService;
 import com.gemstone.gemfire.cache.lucene.LuceneServiceProvider;
 import com.gemstone.gemfire.cache.lucene.internal.InternalLuceneIndex;
 import com.gemstone.gemfire.cache.lucene.internal.LuceneServiceImpl;
-import com.gemstone.gemfire.cache.lucene.internal.repository.IndexRepository;
 import com.gemstone.gemfire.cache30.CacheTestCase;
 import com.gemstone.gemfire.internal.cache.BucketNotFoundException;
 import com.gemstone.gemfire.test.junit.categories.DistributedTest;


Mime
View raw message