public class NumericObject extends java.lang.Object implements IObject, IFunctionConstants
ABS, ACOS, ADD, ADDTIME, AM_PM, AND, ASIN, ATAN, ATAN2, AVERAGE, B_COL, BOOL, BOOL_FUNC, BOOL_NAME, CALENDAR_CONST, CEIL, COL, COS, COUNT, CURRDATE, CURRDATETIME, CURRTIME, D_COL, DATE, DATE_FUNC, DATE_NAME, DATETIME, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DAYDIFF, DAYOFWEEK, DECL, DIVIDE, E, EQUALS, ERA, EXP, FACTORIAL, FALSE, FLOOR, GETAMPM, GETERA, GETMONTH, GREATER, GREATEREQUAL, HOUR, HOUR_OF_DAY, ID, IEEEREMAINDER, IFELSE_B, IFELSE_D, IFELSE_N, IFELSE_S, INDEXOF, INSERT, LASTINDEXOF, LESS, LESSEQUAL, LOG, MAX, MAXLENGTH, MEDIAN, MILLISECOND, MIN, MINUTE, MOD, MONTH, MULTIPLY, N_COL, NAND, NEW_DATE_NAME, NEW_NUM_NAME, NEW_STR_NAME, NOR, NOT, NUM, NUM_FUNC, NUM_NAME, OR, OTHER_FUNC_NAME, PAGE, PARAM, PI, POW, PRINTDATE, PRINTDATETIME, PRINTTIME, RANDOM, REPLACE, RINT, ROLLTIME, S_COL, SECOND, SIN, SQRT, STDDEV, STR, STR_FUNC, STR_NAME, STRCAT, STRLEN, SUBSTRING, SUBTRACT, SUMSQUARE, TAN, TD_FUNC_NAME, THIS, TODATE, TODEGREES, TOLOWERCASE, TONUMERIC, TORADIANS, TOSTRING, TOTALPAGES, TOTALSECTIONS, TOUPPERCASE, TRUE, VARIANCE, WEEK_OF_MONTH, WEEK_OF_YEAR, WITHIN, XNOR, XOR, YEAR
Modifier | Constructor and Description |
---|---|
|
NumericObject(byte val)
Create a new NumericObject using specified byte
|
|
NumericObject(double number)
Create a new NumericObject using specified double
|
|
NumericObject(float number)
Create a new NumericObject using specified float
|
|
NumericObject(int number)
Create a new NumericObject using specified int
|
|
NumericObject(long number)
Create a new NumericObject using specified long
|
|
NumericObject(short number)
Create a new NumericObject using specified short
|
protected |
NumericObject(java.lang.String formula,
int sqlType)
Create a new NumericObject using specified formula and SQL type
|
Modifier and Type | Method and Description |
---|---|
static NumericObject |
abs(NumericObject a)
Absolute of the NumericObject
|
static NumericObject |
acos(NumericObject a)
Arc cosine of specified NumericObject
|
static NumericObject |
add(NumericObject[] f)
Add every element of the NumericObject array
|
static NumericObject |
add(NumericObject f1,
NumericObject f2)
Add the two NumericObjects
|
static NumericObject |
asin(NumericObject a)
Arc sine of specified NumericObject
|
static NumericObject |
atan(NumericObject a)
Arc tan of specified NumericObject
|
static NumericObject |
atan2(NumericObject a,
NumericObject b)
Arc tan of specified NumericObjects.
|
static NumericObject |
average(NumericObject[] f)
Average of the elements of the NumericObject array
|
static NumericObject |
ceil(NumericObject a)
Ceiling of the NumericObject
|
static NumericObject |
cos(NumericObject a)
Cosine of specified NumericObject
|
static NumericObject |
count(NumericObject[] f)
Number of elements in the NumericObject array
|
static NumericObject |
divide(NumericObject numerator,
NumericObject denominator)
Divide numerator by denominator
|
static NumericObject |
e()
Base of natural log
|
static NumericObject |
exp(NumericObject a)
Exponential raised to the power of the NumericObject
|
static NumericObject |
factorial(NumericObject a)
Factorial of the specified NumericObject
|
static NumericObject |
floor(NumericObject a)
Floor of the NumericObject
|
static NumericObject |
getColumnValue(int colInfoIndex)
Returns the column value of the specific column
|
static NumericObject |
getColumnValue(int colInfoIndex,
int sqlType)
Returns the column value of the specified column
|
static NumericObject |
getColumnValue(int colInfoIndex,
short aggregation)
Returns the Column value of specified column after doing the specified aggregation.
|
static NumericObject |
getColumnValue(int colInfoIndex,
short aggregation,
int sqlType)
Returns the Column value of specified column after doing the specified aggregation.
|
static NumericObject |
getColumnValue(NumericObject colInfoIndex,
int sqlType)
Returns the column value of the specified column
|
static NumericObject |
getColumnValue(NumericObject colInfoIndex,
short aggregation,
int sqlType)
Returns the Column value of specified column after doing the specified aggregation.
|
java.lang.String |
getFormula()
Returns the formula
|
int |
getSQLType()
Returns the SQL type
|
static NumericObject |
IEEERemainder(NumericObject dividend,
NumericObject divisor)
Computes the remainder operator on two arguments based on the IEEE754 standard
|
static NumericObject |
log(NumericObject a)
Natural log of the NumericObject
|
static NumericObject |
max(NumericObject[] f)
Returns maximum from the elements of the NumericObject array
|
static NumericObject |
max(NumericObject a,
NumericObject b)
Returns maximum from the two NumericObjects
|
static NumericObject |
min(NumericObject[] f)
Returns manimum from the elements of the NumericObject array
|
static NumericObject |
min(NumericObject a,
NumericObject b)
Returns manimum from the two NumericObjects
|
static NumericObject |
mod(NumericObject numerator,
NumericObject denominator)
Returns the remainder after dividing denominator from numerator
|
static NumericObject |
multiply(NumericObject[] f)
Multiply every element of the NumericObject array
|
static NumericObject |
multiply(NumericObject f1,
NumericObject f2)
Multiply the two NumericObjects
|
static NumericObject |
pi()
Pi value
|
static NumericObject |
pow(NumericObject a,
NumericObject b)
Computers b raised to a
|
static NumericObject |
random()
Random number generator
|
static NumericObject |
rint(NumericObject a)
Double value closest to a and equal to a integer
|
static NumericObject |
sin(NumericObject a)
Sine of specified NumericObject
|
static NumericObject |
sqrt(NumericObject a)
Square root of the NumericObject
|
static NumericObject |
standardDeviation(NumericObject[] f)
Standard Deviation of the elements of the NumericObject array
|
static NumericObject |
subtract(NumericObject[] f)
Subtract the rest elements of NumbericObject array from the first element
|
static NumericObject |
subtract(NumericObject f1,
NumericObject f2)
Subtract NumericObject f2 from NumericObject f1
|
static NumericObject |
sumSquare(NumericObject[] f)
Adds the squares of the elements of the NumericObject array
|
static NumericObject |
tan(NumericObject a)
Tan of specified NumericObject
|
static NumericObject |
toDegrees(NumericObject angrad)
Converts angle in radians to degrees
|
static NumericObject |
toRadians(NumericObject angdeg)
Converts angle in degrees to radians
|
static StringObject |
toString(NumericObject a)
Convert NumericObject to string
|
static StringObject |
toString(NumericObject a,
NumericObject dp)
Convert NumericObject to string with specified round up decimal point
|
static StringObject |
toString(NumericObject a,
NumericObject dp,
BooleanObject rup)
Convert NumericObject to string with specified decimal point
|
static NumericObject |
variance(NumericObject[] f)
Variance of the elements of the NumericObject array
|
public NumericObject(short number)
public NumericObject(int number)
public NumericObject(long number)
public NumericObject(float number)
public NumericObject(double number)
public NumericObject(byte val)
protected NumericObject(java.lang.String formula, int sqlType)
public java.lang.String getFormula()
getFormula
in interface IObject
public int getSQLType()
getSQLType
in interface IObject
public static NumericObject getColumnValue(int colInfoIndex)
public static NumericObject getColumnValue(int colInfoIndex, int sqlType)
public static NumericObject getColumnValue(NumericObject colInfoIndex, int sqlType)
public static NumericObject getColumnValue(int colInfoIndex, short aggregation)
public static NumericObject getColumnValue(int colInfoIndex, short aggregation, int sqlType)
public static NumericObject getColumnValue(NumericObject colInfoIndex, short aggregation, int sqlType)
public static NumericObject add(NumericObject f1, NumericObject f2)
public static NumericObject add(NumericObject[] f)
public static NumericObject subtract(NumericObject f1, NumericObject f2)
public static NumericObject subtract(NumericObject[] f)
public static NumericObject multiply(NumericObject f1, NumericObject f2)
public static NumericObject multiply(NumericObject[] f)
public static NumericObject divide(NumericObject numerator, NumericObject denominator)
public static NumericObject mod(NumericObject numerator, NumericObject denominator)
public static NumericObject IEEERemainder(NumericObject dividend, NumericObject divisor)
public static NumericObject acos(NumericObject a)
public static NumericObject cos(NumericObject a)
public static NumericObject asin(NumericObject a)
public static NumericObject sin(NumericObject a)
public static NumericObject atan(NumericObject a)
public static NumericObject atan2(NumericObject a, NumericObject b)
public static NumericObject tan(NumericObject a)
public static NumericObject ceil(NumericObject a)
public static NumericObject exp(NumericObject a)
public static NumericObject floor(NumericObject a)
public static NumericObject log(NumericObject a)
public static NumericObject toDegrees(NumericObject angrad)
public static NumericObject toRadians(NumericObject angdeg)
public static NumericObject pow(NumericObject a, NumericObject b)
public static NumericObject random()
public static NumericObject rint(NumericObject a)
public static NumericObject sqrt(NumericObject a)
public static NumericObject abs(NumericObject a)
public static NumericObject max(NumericObject a, NumericObject b)
public static NumericObject max(NumericObject[] f)
public static NumericObject min(NumericObject a, NumericObject b)
public static NumericObject min(NumericObject[] f)
public static NumericObject pi()
public static NumericObject e()
public static NumericObject count(NumericObject[] f)
public static NumericObject sumSquare(NumericObject[] f)
public static NumericObject average(NumericObject[] f)
public static NumericObject variance(NumericObject[] f)
public static NumericObject standardDeviation(NumericObject[] f)
public static NumericObject factorial(NumericObject a)
public static StringObject toString(NumericObject a)
public static StringObject toString(NumericObject a, NumericObject dp)
public static StringObject toString(NumericObject a, NumericObject dp, BooleanObject rup)