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.FieldasField()Returns a field representation of the imported field.<T extends com.yahoo.vespa.indexinglanguage.expressions.Expression>
booleancontainsExpression(Class<T> searchFor) booleanbooleanbooleanbooleanbooleanexistsIndex(String name) com.yahoo.document.DataTypecom.yahoo.vespa.indexinglanguage.expressions.ScriptExpressionintgetName()getStemming(Schema schema) getStructField(String name) Collection<? extends ImmutableSDField>getSummaryField(String name) intbooleanReturns true if this is a document field (not a synthetic field), or a mutable attribute.booleanhasIndex()booleanReturns whether this field has a single attribute with the same name as this field.booleanbooleanbooleanbooleanbooleanWhether this field at some time was configured to do attributing.booleanWhether 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:
containsExpressionin interfaceImmutableSDField
-
doesAttributing
public boolean doesAttributing()- Specified by:
doesAttributingin interfaceImmutableSDField
-
doesIndexing
public boolean doesIndexing()- Specified by:
doesIndexingin interfaceImmutableSDField
-
doesBitPacking
public boolean doesBitPacking()- Specified by:
doesBitPackingin interfaceImmutableSDField
-
doesLowerCasing
public boolean doesLowerCasing()- Specified by:
doesLowerCasingin interfaceImmutableSDField
-
isExtraField
public boolean isExtraField()- Specified by:
isExtraFieldin interfaceImmutableSDField
-
isImportedField
public boolean isImportedField()- Specified by:
isImportedFieldin interfaceImmutableSDField
-
isIndexStructureField
public boolean isIndexStructureField()- Specified by:
isIndexStructureFieldin interfaceImmutableSDField
-
hasIndex
public boolean hasIndex()- Specified by:
hasIndexin interfaceImmutableSDField
-
usesStructOrMap
public boolean usesStructOrMap()- Specified by:
usesStructOrMapin interfaceImmutableSDField
-
wasConfiguredToDoAttributing
public boolean wasConfiguredToDoAttributing()Description copied from interface:ImmutableSDFieldWhether 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:
wasConfiguredToDoAttributingin interfaceImmutableSDField
-
wasConfiguredToDoIndexing
public boolean wasConfiguredToDoIndexing()Description copied from interface:ImmutableSDFieldWhether 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:
wasConfiguredToDoIndexingin interfaceImmutableSDField
-
hasSingleAttribute
public boolean hasSingleAttribute()Description copied from interface:ImmutableSDFieldReturns whether this field has a single attribute with the same name as this field.- Specified by:
hasSingleAttributein interfaceImmutableSDField
-
getDataType
public com.yahoo.document.DataType getDataType()- Specified by:
getDataTypein interfaceImmutableSDField
-
getSummaryField
- Specified by:
getSummaryFieldin interfaceImmutableSDField
-
getIndex
- Specified by:
getIndexin interfaceImmutableSDField
-
getQueryCommands
- Specified by:
getQueryCommandsin interfaceImmutableSDField
-
getAttributes
- Specified by:
getAttributesin interfaceImmutableSDField
-
getAttribute
- Specified by:
getAttributein interfaceImmutableSDField
-
getAliasToName
- Specified by:
getAliasToNamein interfaceImmutableSDField
-
getIndexingScript
public com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression getIndexingScript()- Specified by:
getIndexingScriptin interfaceImmutableSDField
-
getMatching
- Specified by:
getMatchingin interfaceImmutableSDField
-
getNormalizing
- Specified by:
getNormalizingin interfaceImmutableSDField
-
getStructField
- Specified by:
getStructFieldin interfaceImmutableSDField
-
getStructFields
- Specified by:
getStructFieldsin interfaceImmutableSDField
-
getStemming
- Specified by:
getStemmingin interfaceImmutableSDField
-
getStemming
- Specified by:
getStemmingin interfaceImmutableSDField
-
getRanking
- Specified by:
getRankingin interfaceImmutableSDField
-
getSummaryFields
- Specified by:
getSummaryFieldsin interfaceImmutableSDField
-
getName
- Specified by:
getNamein interfaceImmutableSDField
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceImmutableSDField
-
getLiteralBoost
public int getLiteralBoost()- Specified by:
getLiteralBoostin interfaceImmutableSDField
-
getRankType
- Specified by:
getRankTypein interfaceImmutableSDField
-
getIndices
- Specified by:
getIndicesin interfaceImmutableSDField
-
existsIndex
- Specified by:
existsIndexin 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:
asFieldin interfaceImmutableSDField
-
hasFullIndexingDocprocRights
public boolean hasFullIndexingDocprocRights()Description copied from interface:ImmutableSDFieldReturns true if this is a document field (not a synthetic field), or a mutable attribute.- Specified by:
hasFullIndexingDocprocRightsin interfaceImmutableSDField
-