Class PackBitsExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.PackBitsExpression
Converts any tensor containing only ones and zeroes into one where each consecutive 8 values in the
dense dimension are packed into a single byte. As a consequence the output type of this is a tensor
where the dense dimension is 1/8th as large.
- Author:
- bratseth
-
Constructor Summary
Constructors -
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.toString()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, setOutputType, setStatementOutputMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select, selectMembers
-
Constructor Details
-
PackBitsExpression
public PackBitsExpression()
-
-
Method Details
-
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
-
doExecute
- Specified by:
doExecutein classExpression
-
toString
-
hashCode
public int hashCode() -
equals
-