Type Inference
See also: Data Transfer / Primitive Management for how Adhoc handles primitive types at runtime.
Ints and Longs
ints are generally treated as longs.
- Aggregations (e.g.
SUM) will automatically turnsintintolong EqualsMatcher,InMatcherandComparingMatcherwill automatically turnsintintolong
Floats and Doubles
floats are generally treated as doubles.
SUMwill automatically turnsfloatintodoubleEqualsMatcher,InMatcherandComparingMatcherwill automatically turnsfloatintodouble
Numbers
- Aggregations should generally aggregates as
long, elsedouble.