You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by as...@apache.org on 2015/11/11 22:24:09 UTC
[37/50] [abbrv] incubator-geode git commit: Marking incomplete lucene
features as incomplete
Marking incomplete lucene features as incomplete
We haven't finished implementing a few options in the API. I've marked
those so that someone picking up this code in the middle won't
accidentally try to use those features.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/d623cf67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/d623cf67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/d623cf67
Branch: refs/heads/develop
Commit: d623cf678f9015581a6db7f772d46deb7f370cf1
Parents: 5c09e68
Author: Dan Smith <up...@apache.org>
Authored: Fri Oct 16 13:55:11 2015 -0700
Committer: Dan Smith <up...@apache.org>
Committed: Fri Oct 16 13:55:11 2015 -0700
----------------------------------------------------------------------
.../cache/lucene/LuceneQueryFactory.java | 3 +++
.../gemfire/cache/lucene/LuceneService.java | 5 ++++-
.../LuceneIndexForReplicatedRegion.java | 23 ++++----------------
3 files changed, 11 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d623cf67/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneQueryFactory.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneQueryFactory.java b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneQueryFactory.java
index b5598ad..eea4b88 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneQueryFactory.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneQueryFactory.java
@@ -45,7 +45,10 @@ public interface LuceneQueryFactory {
*
* @param fieldNames
* @return itself
+ *
+ * @deprecated TODO This feature is not yet implemented
*/
+ @Deprecated
LuceneQueryFactory setProjectionFields(String... fieldNames);
/**
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d623cf67/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneService.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneService.java b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneService.java
index e1623d6..6c629de 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneService.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/LuceneService.java
@@ -73,8 +73,9 @@ public interface LuceneService {
* @param regionPath region name
* @param analyzerPerField analyzer per field map
* @return LuceneIndex object
- *
+ * @deprecated TODO This feature is not yet implemented
*/
+ @Deprecated
public void createIndex(String indexName, String regionPath,
Map<String, Analyzer> analyzerPerField);
@@ -82,7 +83,9 @@ public interface LuceneService {
* Destroy the lucene index
*
* @param index index object
+ * @deprecated TODO This feature is not yet implemented
*/
+ @Deprecated
public void destroyIndex(LuceneIndex index);
/**
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/d623cf67/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexForReplicatedRegion.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexForReplicatedRegion.java b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexForReplicatedRegion.java
index f160a6d..7288399 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexForReplicatedRegion.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/LuceneIndexForReplicatedRegion.java
@@ -1,44 +1,29 @@
package com.gemstone.gemfire.cache.lucene.internal;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.List;
import java.util.Map;
-import java.util.Set;
import org.apache.lucene.analysis.Analyzer;
import com.gemstone.gemfire.cache.Cache;
-import com.gemstone.gemfire.cache.Region;
-import com.gemstone.gemfire.cache.execute.RegionFunctionContext;
-import com.gemstone.gemfire.cache.lucene.LuceneIndex;
-import com.gemstone.gemfire.cache.lucene.internal.filesystem.ChunkKey;
-import com.gemstone.gemfire.cache.lucene.internal.filesystem.File;
-import com.gemstone.gemfire.cache.lucene.internal.repository.IndexRepository;
/* wrapper of IndexWriter */
public class LuceneIndexForReplicatedRegion extends LuceneIndexImpl {
public LuceneIndexForReplicatedRegion(String indexName, String regionPath, Cache cache) {
- // TODO Auto-generated constructor stub
+ throw new UnsupportedOperationException("Lucene indexes on replicated regions is not yet implemented");
}
public void initialize() {
- // TODO Auto-generated method stub
-
+ throw new UnsupportedOperationException("Lucene indexes on replicated regions is not yet implemented");
}
public void close() {
- // TODO Auto-generated method stub
-
+ throw new UnsupportedOperationException("Lucene indexes on replicated regions is not yet implemented");
}
@Override
public Map<String, Analyzer> getFieldAnalyzerMap() {
- // TODO Auto-generated method stub
- return null;
+ throw new UnsupportedOperationException("Lucene indexes on replicated regions is not yet implemented");
}
}