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:23:40 UTC
[08/50] [abbrv] incubator-geode git commit: GEODE-11: Target
primaries for text search
GEODE-11: Target primaries for text search
OptimizeForWrite is a hint to function service to execute function on primaries
only. As of now indexes on secondaries are not maintained.
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/3f0c0696
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/3f0c0696
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/3f0c0696
Branch: refs/heads/develop
Commit: 3f0c0696e1f35ac4dc0f5a0f18b2e2fa5e54f654
Parents: 0394f05
Author: Ashvin Agrawal <as...@apache.org>
Authored: Tue Sep 22 15:54:20 2015 -0700
Committer: Ashvin Agrawal <as...@apache.org>
Committed: Tue Sep 22 15:56:27 2015 -0700
----------------------------------------------------------------------
.../cache/lucene/internal/distributed/LuceneFunction.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/3f0c0696/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunction.java
----------------------------------------------------------------------
diff --git a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunction.java b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunction.java
index e2e33f3..ca0e2d3 100644
--- a/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunction.java
+++ b/gemfire-lucene/src/main/java/com/gemstone/gemfire/cache/lucene/internal/distributed/LuceneFunction.java
@@ -115,4 +115,9 @@ public class LuceneFunction extends FunctionAdapter {
public String getId() {
return ID;
}
+
+ @Override
+ public boolean optimizeForWrite() {
+ return true;
+ }
}