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