Package com.yahoo.schema.document
Class ImmutableImportedSDField
java.lang.Object
com.yahoo.schema.document.ImmutableImportedSDField
- All Implemented Interfaces:
ImmutableSDField
- Direct Known Subclasses:
ImmutableImportedComplexSDField
Wraps
ImportedField
as ImmutableSDField
.
Methods that are not meaningful or relevant for imported fields will throw UnsupportedOperationException
.- Author:
- bjorncs
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.document.Field
asField()
Returns a field representation of the imported field.<T extends com.yahoo.vespa.indexinglanguage.expressions.Expression>
booleancontainsExpression
(Class<T> searchFor) boolean
boolean
boolean
boolean
existsIndex
(String name) com.yahoo.document.DataType
com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression
int
getName()
getStemming
(Schema schema) getStructField
(String name) Collection<? extends ImmutableSDField>
getSummaryField
(String name) int
boolean
boolean
hasIndex()
boolean
Returns whether this field has a single attribute with the same name as this field.boolean
boolean
boolean
boolean
boolean
Whether this field at some time was configured to do attributing.boolean
Whether this field at some time was configured to do indexing.
-
Method Details
-
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
-
wasConfiguredToDoIndexing
public boolean wasConfiguredToDoIndexing()Description copied from interface:ImmutableSDField
Whether this field at some time was configured to do indexing. This function can typically return a different value than doesIndexing(), which uses the final state of the underlying indexing script instead.- Specified by:
wasConfiguredToDoIndexing
in interfaceImmutableSDField
-
hasSingleAttribute
public boolean hasSingleAttribute()Description copied from interface:ImmutableSDField
Returns whether this field has a single attribute with the same name as this field.- Specified by:
hasSingleAttribute
in interfaceImmutableSDField
-
getDataType
public com.yahoo.document.DataType getDataType()- Specified by:
getDataType
in interfaceImmutableSDField
-
getSummaryField
- Specified by:
getSummaryField
in interfaceImmutableSDField
-
getIndex
- Specified by:
getIndex
in interfaceImmutableSDField
-
getQueryCommands
- Specified by:
getQueryCommands
in interfaceImmutableSDField
-
getAttributes
- Specified by:
getAttributes
in interfaceImmutableSDField
-
getAttribute
- Specified by:
getAttribute
in interfaceImmutableSDField
-
getAliasToName
- Specified by:
getAliasToName
in interfaceImmutableSDField
-
getIndexingScript
public com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression getIndexingScript()- Specified by:
getIndexingScript
in interfaceImmutableSDField
-
getMatching
- Specified by:
getMatching
in interfaceImmutableSDField
-
getNormalizing
- Specified by:
getNormalizing
in interfaceImmutableSDField
-
getStructField
- Specified by:
getStructField
in interfaceImmutableSDField
-
getStructFields
- Specified by:
getStructFields
in interfaceImmutableSDField
-
getStemming
- Specified by:
getStemming
in interfaceImmutableSDField
-
getStemming
- Specified by:
getStemming
in interfaceImmutableSDField
-
getRanking
- Specified by:
getRanking
in interfaceImmutableSDField
-
getSummaryFields
- Specified by:
getSummaryFields
in interfaceImmutableSDField
-
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
- Specified by:
getRankType
in interfaceImmutableSDField
-
getIndices
- Specified by:
getIndices
in interfaceImmutableSDField
-
existsIndex
- 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
-