Class ImmutableImportedSDField
- java.lang.Object
-
- com.yahoo.searchdefinition.document.ImmutableImportedSDField
-
- All Implemented Interfaces:
ImmutableSDField
- Direct Known Subclasses:
ImmutableImportedComplexSDField
public class ImmutableImportedSDField extends Object implements ImmutableSDField
WrapsImportedField
asImmutableSDField
. Methods that are not meaningful or relevant for imported fields will throwUnsupportedOperationException
.- Author:
- bjorncs
-
-
Method Summary
-
-
-
Method Detail
-
getImportedField
public ImportedField getImportedField()
-
containsExpression
public <T extends com.yahoo.vespa.indexinglanguage.expressions.Expression> boolean containsExpression(Class<T> searchFor)
- Specified by:
containsExpression
in interfaceImmutableSDField
-
doesAttributing
public boolean doesAttributing()
- Specified by:
doesAttributing
in interfaceImmutableSDField
-
doesIndexing
public boolean doesIndexing()
- Specified by:
doesIndexing
in interfaceImmutableSDField
-
doesLowerCasing
public boolean doesLowerCasing()
- Specified by:
doesLowerCasing
in interfaceImmutableSDField
-
isExtraField
public boolean isExtraField()
- Specified by:
isExtraField
in interfaceImmutableSDField
-
isImportedField
public boolean isImportedField()
- Specified by:
isImportedField
in interfaceImmutableSDField
-
isIndexStructureField
public boolean isIndexStructureField()
- Specified by:
isIndexStructureField
in interfaceImmutableSDField
-
hasIndex
public boolean hasIndex()
- Specified by:
hasIndex
in interfaceImmutableSDField
-
usesStructOrMap
public boolean usesStructOrMap()
- Specified by:
usesStructOrMap
in interfaceImmutableSDField
-
wasConfiguredToDoAttributing
public boolean wasConfiguredToDoAttributing()
Description copied from interface:ImmutableSDField
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.- Specified by:
wasConfiguredToDoAttributing
in interfaceImmutableSDField
-
getDataType
public com.yahoo.document.DataType getDataType()
- Specified by:
getDataType
in interfaceImmutableSDField
-
getSummaryField
public SummaryField getSummaryField(String name)
- Specified by:
getSummaryField
in interfaceImmutableSDField
-
getIndex
public Index getIndex(String name)
- Specified by:
getIndex
in interfaceImmutableSDField
-
getQueryCommands
public List<String> getQueryCommands()
- Specified by:
getQueryCommands
in interfaceImmutableSDField
-
getAttributes
public Map<String,Attribute> getAttributes()
- Specified by:
getAttributes
in interfaceImmutableSDField
-
getAttribute
public Attribute getAttribute()
- Specified by:
getAttribute
in interfaceImmutableSDField
-
getAliasToName
public Map<String,String> getAliasToName()
- Specified by:
getAliasToName
in interfaceImmutableSDField
-
getIndexingScript
public com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression getIndexingScript()
- Specified by:
getIndexingScript
in interfaceImmutableSDField
-
getMatching
public Matching getMatching()
- Specified by:
getMatching
in interfaceImmutableSDField
-
getNormalizing
public NormalizeLevel getNormalizing()
- Specified by:
getNormalizing
in interfaceImmutableSDField
-
getStructField
public ImmutableSDField getStructField(String name)
- Specified by:
getStructField
in interfaceImmutableSDField
-
getStructFields
public Collection<? extends ImmutableSDField> getStructFields()
- Specified by:
getStructFields
in interfaceImmutableSDField
-
getStemming
public Stemming getStemming()
- Specified by:
getStemming
in interfaceImmutableSDField
-
getStemming
public Stemming getStemming(Schema schema)
- Specified by:
getStemming
in interfaceImmutableSDField
-
getRanking
public Ranking getRanking()
- Specified by:
getRanking
in interfaceImmutableSDField
-
getSummaryFields
public Map<String,SummaryField> getSummaryFields()
- Specified by:
getSummaryFields
in interfaceImmutableSDField
-
getName
public String getName()
- Specified by:
getName
in interfaceImmutableSDField
-
getWeight
public int getWeight()
- Specified by:
getWeight
in interfaceImmutableSDField
-
getLiteralBoost
public int getLiteralBoost()
- Specified by:
getLiteralBoost
in interfaceImmutableSDField
-
getRankType
public RankType getRankType()
- Specified by:
getRankType
in interfaceImmutableSDField
-
getIndices
public Map<String,Index> getIndices()
- Specified by:
getIndices
in interfaceImmutableSDField
-
existsIndex
public boolean existsIndex(String name)
- Specified by:
existsIndex
in interfaceImmutableSDField
-
asField
public com.yahoo.document.Field asField()
Returns a field representation of the imported field. Changes to the returned instance are not propagated back to the underlying imported field!- Specified by:
asField
in interfaceImmutableSDField
-
hasFullIndexingDocprocRights
public boolean hasFullIndexingDocprocRights()
- Specified by:
hasFullIndexingDocprocRights
in interfaceImmutableSDField
-
-