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: Target primaries for text search
Date Tue, 22 Sep 2015 22:56:49 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-11 0394f0527 -> 3f0c0696e


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/feature/GEODE-11
Commit: 3f0c0696e1f35ac4dc0f5a0f18b2e2fa5e54f654
Parents: 0394f05
Author: Ashvin Agrawal <ashvin@apache.org>
Authored: Tue Sep 22 15:54:20 2015 -0700
Committer: Ashvin Agrawal <ashvin@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;
+  }
 }


Mime
View raw message