Interface NumericExpressionTrait<N extends DataType.NumericType>
- Type Parameters:
N
- The type of the function.
- All Superinterfaces:
ComparableExpressionTrait<N,
,Expression<N>> Expression<N>
,ScalarExpression<N>
- All Known Subinterfaces:
Mixins.DoubleExpressionFragment
,Mixins.DoubleField
,Mixins.FloatExpressionFragment
,Mixins.FloatField
,Mixins.IntExpressionFragment
,Mixins.IntField
,Mixins.LongExpressionFragment
,Mixins.LongField
- All Known Implementing Classes:
NumericFunction
,NumericLiteral
@Immutable
public interface NumericExpressionTrait<N extends DataType.NumericType>
extends ComparableExpressionTrait<N,Expression<N>>
This is a mixin of numerical operations. Please note that this does not support any kind of SQL-like implicit casting at
the moment.
-
Method Summary
Modifier and TypeMethodDescriptiondefault NumericExpressionTrait<N>
add
(NumericExpressionTrait<N> right) default NumericExpressionTrait<N>
div
(NumericExpressionTrait<N> right) getType()
default NumericExpressionTrait<N>
mod
(NumericExpressionTrait<N> right) default NumericExpressionTrait<N>
mul
(NumericExpressionTrait<N> right) default NumericExpressionTrait<N>
sub
(NumericExpressionTrait<N> right) Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ComparableExpressionTrait
greaterThan, greaterThanOrEquals, greatest, isEqualTo, lessThan, lessThanOrEqual, notEquals
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.Expression
accept
Methods inherited from interface com.apple.foundationdb.relational.api.fluentsql.expression.ScalarExpression
isNotNull, isNull
-
Method Details
-
add
-
sub
-
div
-
mul
-
mod
-
getType
N getType()- Specified by:
getType
in interfaceComparableExpressionTrait<N extends DataType.NumericType,
Expression<N extends DataType.NumericType>> - Specified by:
getType
in interfaceExpression<N extends DataType.NumericType>
-