Class DoubleCompatibleValue
java.lang.Object
com.yahoo.searchlib.rankingexpression.evaluation.Value
com.yahoo.searchlib.rankingexpression.evaluation.DoubleCompatibleValue
- Direct Known Subclasses:
BooleanValue,DoubleValue,LongValue
A value which acts as a double in numerical context.
- Author:
- bratseth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapproxEqual(Value value) com.yahoo.tensor.TensorasTensor()Returns this as a tensor valuePerform the given binary function on this value and the given valuebooleanReturns true if this value can return itself as a double, i.e asDoubleValue will return a value and not throwlargerOrEqual(Value value) negate()not()smallerOrEqual(Value value) com.yahoo.tensor.TensorTypetype()Returns the type of this value
-
Constructor Details
-
DoubleCompatibleValue
public DoubleCompatibleValue()
-
-
Method Details
-
type
public com.yahoo.tensor.TensorType type()Description copied from class:ValueReturns the type of this value -
hasDouble
public boolean hasDouble()Description copied from class:ValueReturns true if this value can return itself as a double, i.e asDoubleValue will return a value and not throw -
asTensor
public com.yahoo.tensor.Tensor asTensor()Description copied from class:ValueReturns this as a tensor value -
negate
-
not
-
or
-
and
-
largerOrEqual
- Specified by:
largerOrEqualin classValue
-
larger
-
smallerOrEqual
- Specified by:
smallerOrEqualin classValue
-
smaller
-
approxEqual
- Specified by:
approxEqualin classValue
-
notEqual
-
equal
-
add
-
subtract
-
multiply
-
divide
-
modulo
-
power
-
function
Description copied from class:ValuePerform the given binary function on this value and the given value
-