public final class IntervalGapBetweenOperatorImplementation extends java.lang.Object implements IntervalOperatorImplementation
| Constructor and Description |
|---|
IntervalGapBetweenOperatorImplementation(IntervalTypeImplementation intervalTypeImplementation,
IntervalMergesOperatorImplementation mergesOperatorImplementation)
Creates the IntervalGapBetweenOperatorImplementation
|
| Modifier and Type | Method and Description |
|---|---|
ValueBuffer |
executeOperator(java.util.LinkedList<ValueBuffer> args)
GAPBETWEEN returns an interval consisting of all the point values that appear in SPAN(i1,i2), but neither in i1 nor in i2 themselves.
|
java.lang.String[] |
getArgumentTypeNames()
GAPBETWEEN takes two arguments that are both of the same interval type
|
TypeDeclaration |
getReturnTypeDeclaration()
Gets the full type declaration of the type of the return value.
|
java.lang.String |
getReturnTypeName()
The return type for GAPBETWEEN is the same as the arguments' type
|
java.lang.String |
getSignature()
Gets the name of the operator implemented by this implementation object
|
boolean |
isDeterministic()
Tells whether the operator is deterministic with respect to the arguments of its invocations.
|
void |
readExternal(java.io.ObjectInput in) |
void |
writeExternal(java.io.ObjectOutput out) |
public IntervalGapBetweenOperatorImplementation(IntervalTypeImplementation intervalTypeImplementation, IntervalMergesOperatorImplementation mergesOperatorImplementation)
intervalTypeImplementation - The implementation for the interval type that the operator operates onmergesOperatorImplementation - The implementation of the overlaps operator for this interval typepublic ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
| Cases | (meaning) | GAPBETWEEN operator outcome |
| Any argument is o (the empty interval) | o | |
| MERGES(i1,i2) yields TRUE | o | |
| Other cases | e1<b2 OR e2<b1 | The interval from MIN(e1,e2) to MAX(b1,b2) |
executeOperator in interface OperatorImplementation_V0104args - 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. Implementations have the option, but are not required, to do a check the conformance of the argument list (the argument count, notably) to the operator signature.public java.lang.String[] getArgumentTypeNames()
getArgumentTypeNames in interface OperatorImplementation_V0104public TypeDeclaration getReturnTypeDeclaration()
OperatorImplementation_V0105getReturnTypeDeclaration in interface OperatorImplementation_V0105public java.lang.String getReturnTypeName()
getReturnTypeName in interface OperatorImplementation_V0104public java.lang.String getSignature()
OperatorImplementation_V0104getSignature in interface OperatorImplementation_V0104public boolean isDeterministic()
OperatorImplementation_V0104isDeterministic in interface OperatorImplementation_V0104public void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException