Package com.yahoo.schema.document
Interface ImmutableSDField
- All Known Implementing Classes:
ImmutableImportedComplexSDField
,ImmutableImportedSDField
,SDField
,TemporarySDField
public interface ImmutableSDField
An interface containing the non-mutating methods of
SDField
.
For description of the methods see SDField
.- Author:
- bjorncs
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.document.Field
asField()
Returns aField
representation (which is sadly not immutable)<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
-
containsExpression
<T extends com.yahoo.vespa.indexinglanguage.expressions.Expression> boolean containsExpression(Class<T> searchFor) -
doesAttributing
boolean doesAttributing() -
doesIndexing
boolean doesIndexing() -
doesLowerCasing
boolean doesLowerCasing() -
isExtraField
boolean isExtraField() -
isImportedField
boolean isImportedField() -
isIndexStructureField
boolean isIndexStructureField() -
usesStructOrMap
boolean usesStructOrMap() -
wasConfiguredToDoAttributing
boolean wasConfiguredToDoAttributing()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. -
wasConfiguredToDoIndexing
boolean wasConfiguredToDoIndexing()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. -
hasSingleAttribute
boolean hasSingleAttribute()Returns whether this field has a single attribute with the same name as this field. -
getDataType
com.yahoo.document.DataType getDataType() -
getIndex
-
getQueryCommands
-
getAttributes
-
getAttribute
Attribute getAttribute() -
getAliasToName
-
getIndexingScript
com.yahoo.vespa.indexinglanguage.expressions.ScriptExpression getIndexingScript() -
getMatching
Matching getMatching() -
getNormalizing
NormalizeLevel getNormalizing() -
getStructField
-
getStructFields
Collection<? extends ImmutableSDField> getStructFields() -
getStemming
Stemming getStemming() -
getStemming
-
getRanking
Ranking getRanking() -
getName
String getName() -
getSummaryFields
Map<String,SummaryField> getSummaryFields() -
asField
com.yahoo.document.Field asField()Returns aField
representation (which is sadly not immutable) -
hasFullIndexingDocprocRights
boolean hasFullIndexingDocprocRights() -
getWeight
int getWeight() -
getLiteralBoost
int getLiteralBoost() -
getRankType
RankType getRankType() -
getIndices
-
existsIndex
-
getSummaryField
-
hasIndex
boolean hasIndex()
-