|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.SIRAPRISE.typeimplementations.PLUS_AVERAGE_AVERAGE
public final class PLUS_AVERAGE_AVERAGE
The AVERAGE addition operator.
| Constructor Summary | |
|---|---|
PLUS_AVERAGE_AVERAGE()
|
|
| Method Summary | |
|---|---|
ValueBuffer |
executeOperator(java.util.LinkedList<ValueBuffer> args)
The average addition operator returns the AVERAGE value (VALUE((c1 * b1) + (c2 * b2) / (c1 + c2)))COUNT(c1 + c2)) |
java.lang.String[] |
getArgumentTypeNames()
PLUS takes two arguments, both of type AVERAGE |
ScalarValueBuffer |
getIdentityElement()
The identity value is the AVERAGE value with COUNT 0 and VALUE 0.0 |
java.lang.String |
getReturnTypeName()
The return type is AVERAGE |
boolean |
isDeterministic()
Tells whether the operator is deterministic with respect to the arguments of its invocations. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PLUS_AVERAGE_AVERAGE()
| Method Detail |
|---|
public ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
executeOperator in interface OperatorImplementationargs - the argument list. The list must hold as many ValueBuffer objects as there are arguments to the operator, and each ValueBuffer object holds a value for some argument to the operator. ValueBuffer objects on the list must appear in the same order as the operator argument declarations.
public java.lang.String[] getArgumentTypeNames()
getArgumentTypeNames in interface OperatorImplementationpublic ScalarValueBuffer getIdentityElement()
getIdentityElement in interface AggregationOperatorImplementationpublic java.lang.String getReturnTypeName()
getReturnTypeName in interface OperatorImplementationpublic boolean isDeterministic()
OperatorImplementation_V0104
isDeterministic in interface OperatorImplementation_V0104
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||