summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java
diff options
context:
space:
mode:
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java91
1 files changed, 0 insertions, 91 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java b/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java
deleted file mode 100644
index 6d1dee67641..00000000000
--- a/config-model/src/main/java/com/yahoo/searchdefinition/document/ImmutableSDField.java
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.searchdefinition.document;
-
-import com.yahoo.document.DataType;
-import com.yahoo.document.Field;
-import com.yahoo.searchdefinition.Index;
-import com.yahoo.searchdefinition.Schema;
-import com.yahoo.vespa.documentmodel.SummaryField;
-import com.yahoo.vespa.indexinglanguage.expressions.Expression;
-import com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression;
-
-import java.util.Collection;
-import java.util.List;
-import java.util.Map;
-
-/**
- * An interface containing the non-mutating methods of {@link SDField}.
- * For description of the methods see {@link SDField}.
- *
- * @author bjorncs
- */
-public interface ImmutableSDField {
-
- <T extends Expression> boolean containsExpression(Class<T> searchFor);
-
- boolean doesAttributing();
-
- boolean doesIndexing();
-
- boolean doesLowerCasing();
-
- boolean isExtraField();
-
- boolean isImportedField();
-
- boolean isIndexStructureField();
-
- boolean usesStructOrMap();
-
- /**
- * Whether this field at some time was configured to do attributing.
- *
- * This function can typically return a different value than doesAttributing(),
- * which uses the final state of the underlying indexing script instead.
- */
- boolean wasConfiguredToDoAttributing();
-
- DataType getDataType();
-
- Index getIndex(String name);
-
- List<String> getQueryCommands();
-
- Map<String, Attribute> getAttributes();
-
- Attribute getAttribute();
-
- Map<String, String> getAliasToName();
-
- ScriptExpression getIndexingScript();
-
- Matching getMatching();
-
- NormalizeLevel getNormalizing();
-
- ImmutableSDField getStructField(String name);
-
- Collection<? extends ImmutableSDField> getStructFields();
-
- Stemming getStemming();
-
- Stemming getStemming(Schema schema);
-
- Ranking getRanking();
-
- String getName();
-
- Map<String, SummaryField> getSummaryFields();
-
- /** Returns a {@link Field} representation (which is sadly not immutable) */
- Field asField();
-
- boolean hasFullIndexingDocprocRights();
- int getWeight();
- int getLiteralBoost();
- RankType getRankType();
- Map<String, Index> getIndices();
- boolean existsIndex(String name);
- SummaryField getSummaryField(String name);
- boolean hasIndex();
-}