Class EmbedExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.EmbedExpression
Embeds a string in a tensor space using the configured Embedder component
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionEmbedExpression(com.yahoo.language.Linguistics linguistics, Components<com.yahoo.language.process.Embedder> embedders, String embedderId, List<String> embedderArguments) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ExecutionContext context) booleaninthashCode()com.yahoo.document.DataTypesetInputType(com.yahoo.document.DataType inputType, TypeContext context) Sets the input type of this and returns the resulting output type, or null if it cannot be uniquely determined.com.yahoo.document.DataTypesetOutputType(com.yahoo.document.DataType outputType, TypeContext context) Sets the output type of this and returns the resulting input type, or null if it cannot be uniquely determined.voidsetStatementOutput(com.yahoo.document.DocumentType documentType, com.yahoo.document.Field field) Sets the document type and field the statement this expression is part of will write totoString()Methods inherited from class com.yahoo.vespa.indexinglanguage.expressions.Expression
convertChildren, doResolve, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, fromString, fromString, getInputType, getOutputType, getOutputType, isMutating, leastGeneralNonNullOf, leastGeneralOf, mostGeneralOf, newInstance, requireOutputType, requiresInput, resolve, resolve, resolve, resolve, resolve, resolve, resolve, resolve, resolve, setInputType, setOutputTypeMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Constructor Details
-
EmbedExpression
public EmbedExpression(com.yahoo.language.Linguistics linguistics, Components<com.yahoo.language.process.Embedder> embedders, String embedderId, List<String> embedderArguments)
-
-
Method Details
-
requestedEmbedderId
- Returns:
- the requested embedder id. This will diverge from the selected embedder's id when executed in config-model
-
setInputType
public com.yahoo.document.DataType setInputType(com.yahoo.document.DataType inputType, TypeContext context) Description copied from class:ExpressionSets the input type of this and returns the resulting output type, or null if it cannot be uniquely determined. Subtypes may implement this by calling setInputType(inputType, requiredType, VerificationContext context).- Overrides:
setInputTypein classExpression
-
setOutputType
public com.yahoo.document.DataType setOutputType(com.yahoo.document.DataType outputType, TypeContext context) Description copied from class:ExpressionSets the output type of this and returns the resulting input type, or null if it cannot be uniquely determined. Subtypes implement this by calling setOutputType(outputType, requiredType, VerificationContext context).- Overrides:
setOutputTypein classExpression
-
setStatementOutput
public void setStatementOutput(com.yahoo.document.DocumentType documentType, com.yahoo.document.Field field) Description copied from class:ExpressionSets the document type and field the statement this expression is part of will write to- Overrides:
setStatementOutputin classExpression
-
doExecute
- Specified by:
doExecutein classExpression
-
toString
-
hashCode
public int hashCode() -
equals
-