public static enum AlgebraDescriptor.Operator extends Enum<AlgebraDescriptor.Operator>
Enum Constant and Description |
---|
ABSOLUTE |
AND |
DIVIDE |
DIVIDE_INTO |
EXP |
INVERT |
LOG |
MULTIPLY |
NOT |
OR |
SUBTRACT |
SUBTRACT_FROM |
SUM |
XOR |
Modifier and Type | Field and Description |
---|---|
static int |
INT_UPPER_BOUND
The largest int to get a non-overflowed exponential result. i.e. closest to 2**31-1 = 2147483647. exp(21) = 1318815734, exp(22) =
3584912846.
|
static int |
LONG_UPPER_BOUND
The largest int to get a non-overflowed exponential result. i.e. closest to 2**63-1
|
static int |
LOWER_BOUND
The smallest integer to get a non-zero exponential result is 0. i.e. exp(0) = 1; exp(-1) = 0.367879441, which will be stored as 0. all
other negative values will result in 0.
|
static int |
SHORT_UPPER_BOUND
The largest short to get a non-overflowed exponential result. i.e. closest to 32767. exp(10) = 22026.46579, exp(11) = 59874.14171
|
static int |
USHORT_MAX_VALUE
Ushort maximum allowed value
|
Modifier and Type | Method and Description |
---|---|
abstract short |
calculate(boolean isUshort,
short... values) |
abstract byte |
calculate(byte... values) |
abstract double |
calculate(double... values) |
abstract float |
calculate(float... values) |
abstract int |
calculate(int... values) |
abstract short |
calculate(short... values) |
abstract long |
calculateL(long... values) |
double |
getNullValue() |
int |
getType() |
protected void |
initialization() |
boolean |
isDataTypeSupported(int dataType) |
boolean |
isUshortSupported() |
boolean |
supportsMultipleValues() |
static AlgebraDescriptor.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlgebraDescriptor.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlgebraDescriptor.Operator SUM
public static final AlgebraDescriptor.Operator SUBTRACT
public static final AlgebraDescriptor.Operator MULTIPLY
public static final AlgebraDescriptor.Operator DIVIDE
public static final AlgebraDescriptor.Operator AND
public static final AlgebraDescriptor.Operator OR
public static final AlgebraDescriptor.Operator NOT
public static final AlgebraDescriptor.Operator XOR
public static final AlgebraDescriptor.Operator EXP
public static final AlgebraDescriptor.Operator LOG
public static final AlgebraDescriptor.Operator ABSOLUTE
public static final AlgebraDescriptor.Operator INVERT
public static final AlgebraDescriptor.Operator DIVIDE_INTO
public static final AlgebraDescriptor.Operator SUBTRACT_FROM
public static int SHORT_UPPER_BOUND
public static int INT_UPPER_BOUND
public static int LONG_UPPER_BOUND
public static int LOWER_BOUND
public static int USHORT_MAX_VALUE
public static AlgebraDescriptor.Operator[] values()
for (AlgebraDescriptor.Operator c : AlgebraDescriptor.Operator.values()) System.out.println(c);
public static AlgebraDescriptor.Operator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullprotected void initialization()
public abstract byte calculate(byte... values)
public abstract short calculate(short... values)
public abstract short calculate(boolean isUshort, short... values)
public abstract int calculate(int... values)
public abstract float calculate(float... values)
public abstract double calculate(double... values)
public abstract long calculateL(long... values)
public boolean isDataTypeSupported(int dataType)
public boolean supportsMultipleValues()
public boolean isUshortSupported()
public double getNullValue()
public int getType()
Copyright © 2006–2018 GeoSolutions. All rights reserved.