summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-06-09 12:15:43 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-06-09 12:15:43 +0200
commit20513f2cb1f9c65406c32dd717e738d394fc1d1b (patch)
tree8801ffcd7fb2f7f31f66f2ce4db99c6752b909ef /container-search/src/main/java/com/yahoo/prelude
parent79cd883d5df45dc236e5cebf2c21b5487c791df6 (diff)
Extract execution creation into ExecutionFactory
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/IndexFacts.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
index 2fcd2466dd8..1fd8cce9889 100644
--- a/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
+++ b/container-search/src/main/java/com/yahoo/prelude/IndexFacts.java
@@ -253,11 +253,14 @@ public class IndexFacts {
/**
* Freeze this to prevent further changes.
+ *
+ * @return this for chaining
*/
- public void freeze() {
+ public IndexFacts freeze() {
hasNGramIndices = hasNGramIndices();
// TODO: Freeze content!
frozen = true;
+ return this;
}
/** Whether this contains any index which has isNGram()==true. This is free to ask on a frozen instance. */