public class DecimalNumericConversionFunction extends Object
Takes a numeric Double or Float ValueStream or Value and returns a Long or Int ValueStream or Value, respectively.
Modifier and Type | Class and Description |
---|---|
static class |
DecimalNumericConversionFunction.CeilingFunction
A numeric mapping function that returns the ceiling of the input.
|
static interface |
DecimalNumericConversionFunction.ConvertDoubleFunction |
static interface |
DecimalNumericConversionFunction.ConvertFloatFunction |
static class |
DecimalNumericConversionFunction.FloorFunction
A numeric mapping function that returns the floor of the input.
|
static class |
DecimalNumericConversionFunction.RoundFunction
A numeric mapping function that returns the rounded input.
|
Constructor and Description |
---|
DecimalNumericConversionFunction() |
Modifier and Type | Method and Description |
---|---|
static LongValueStream |
createDecimalConversionFunction(String name,
DecimalNumericConversionFunction.ConvertFloatFunction fconv,
DecimalNumericConversionFunction.ConvertDoubleFunction dconv,
AnalyticsValueStream... params)
Create a numeric conversion mapping function.
|
public static LongValueStream createDecimalConversionFunction(String name, DecimalNumericConversionFunction.ConvertFloatFunction fconv, DecimalNumericConversionFunction.ConvertDoubleFunction dconv, AnalyticsValueStream... params)
name
- the name of the functionfconv
- the method to convert floats to intsdconv
- the method to convert doubles to longsparams
- the parameters of the functionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.