public final class UNIONUSING_RELATION_RELATION extends java.lang.Object implements AggregationOperatorImplementation
r1 | r2 | i | result |
---|---|---|---|
REL { TUP {IV:[1-7]} } | REL { TUP {IV:[5-9]} } | REL { TUP {IV:[1-7]} TUP {IV:[5-9]} } | |
REL { TUP {IV:[1-7]} } | REL { TUP {IV:[5-9]} } | IV | REL { TUP {IV:[1-9]} } |
Constructor and Description |
---|
UNIONUSING_RELATION_RELATION(Heading heading,
java.util.LinkedList<NameIdentifier> treatAsRange,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
Creates the UNION_RELATION_RELATION_STRING
|
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<TupleBuffer> |
computeRangeUnionAndPack(java.util.Collection<TupleBuffer> r1,
java.util.Collection<TupleBuffer> r2,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations,
java.util.Set<NameIdentifier> partitioningKeys)
Computes the interval union of the given tuple sets.
|
static java.util.Collection<TupleBuffer> |
computeRangeUnionAndPack(java.util.Collection<TupleBuffer> r1,
java.util.Collection<TupleBuffer> r2,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations,
java.util.Set<NameIdentifier> partitioningKeys,
java.util.LinkedList<ValueBuffer> wrkArgList)
Computes the interval union of the given tuple sets.
|
static java.util.Set<TupleBuffer> |
computeRangeUnionForSamePartitionRelationsAndPack(java.util.Collection<? extends TupleBuffer> r1,
java.util.Collection<? extends TupleBuffer> r2,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
Computes the interval union of the given tuple sets.
|
static java.util.Set<TupleBuffer> |
computeRangeUnionForSamePartitionRelationsAndPack(java.util.Collection<? extends TupleBuffer> r1,
java.util.Collection<? extends TupleBuffer> r2,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementations,
java.util.LinkedList<ValueBuffer> wrkArgList)
Computes the interval union of the given tuple sets.
|
ValueBuffer |
executeOperator(java.util.LinkedList<ValueBuffer> args)
Performs the actual logic of the operator.
|
java.lang.String[] |
getArgumentTypeNames()
Gets the list of names of types of the needed argument values
|
ValueBuffer |
getIdentityElement()
Gets the identity element of the operator in its domain.
|
TypeDeclaration |
getReturnTypeDeclaration()
Gets the full type declaration of the type of the return value.
|
java.lang.String |
getReturnTypeName()
Gets the name of the type of the return value
|
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 UNIONUSING_RELATION_RELATION(Heading heading, java.util.LinkedList<NameIdentifier> treatAsRange, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
heading
- the heading that the arguments of the UNIONUSING conform totreatAsRange
- The in-order list of attributes to be treated in 'USING' mode by the UNIONintervalTypedAttributesIntervalOperatorImplementations
- A map mapping the attribute names to a corresponding collection of interval operators (this collection takes itself the form of a mapping from operator names to interval operator implementations). The map is required to hold at least the OPERATORNAMES.SPLITBY
, OPERATORNAMES.IMINUS
, OPERATORNAMES.IINTERSECT
and OPERATORNAMES.ISEMPTYINTERVAL
implementations for each attribute.intervalTypedAttributesIntervalTypeImplementations
- A map mapping the interval-typed attribute names to their type implementations. The keySet() of this map must be equal to the keySet() of the intervalTypedAttributesIntervalOperatorImplementations Map.public static java.util.Collection<TupleBuffer> computeRangeUnionAndPack(java.util.Collection<TupleBuffer> r1, java.util.Collection<TupleBuffer> r2, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations, java.util.Set<NameIdentifier> partitioningKeys)
r1
- The first argumentr2
- The second argumentintervalTypedAttributesIntervalOperatorImplementations
- A map mapping the attribute names to a corresponding collection of interval operators (this collection takes itself the form of a mapping from operator names to interval operator implementations). The map is required to hold at least the OPERATORNAMES.SPLITBY
, OPERATORNAMES.IMINUS
, OPERATORNAMES.IINTERSECT
and OPERATORNAMES.ISEMPTYINTERVAL
implementations for each attribute.intervalTypedAttributesIntervalTypeImplementations
- A map mapping the interval-typed attribute names to their type implementations. The keySet() of this map must be equal to the keySet() of the intervalTypedAttributesIntervalOperatorImplementations Map.partitioningKeys
- The partitioning keyspublic static java.util.Collection<TupleBuffer> computeRangeUnionAndPack(java.util.Collection<TupleBuffer> r1, java.util.Collection<TupleBuffer> r2, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations, java.util.Set<NameIdentifier> partitioningKeys, java.util.LinkedList<ValueBuffer> wrkArgList)
r1
- The first argumentr2
- The second argumentintervalTypedAttributesIntervalOperatorImplementations
- A map mapping the attribute names to a corresponding collection of interval operators (this collection takes itself the form of a mapping from operator names to interval operator implementations). The map is required to hold at least the OPERATORNAMES.SPLITBY
, OPERATORNAMES.IMINUS
, OPERATORNAMES.IINTERSECT
and OPERATORNAMES.ISEMPTYINTERVAL
implementations for each attribute.intervalTypedAttributesIntervalTypeImplementations
- A map mapping the interval-typed attribute names to their type implementations. The keySet() of this map must be equal to the keySet() of the intervalTypedAttributesIntervalOperatorImplementations Map.partitioningKeys
- The partitioning keyswrkArgList
- A linkedlist that can be used as a working object when invoking the interval operatorspublic static java.util.Set<TupleBuffer> computeRangeUnionForSamePartitionRelationsAndPack(java.util.Collection<? extends TupleBuffer> r1, java.util.Collection<? extends TupleBuffer> r2, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
r1
- The first argumentr2
- The second argumentintervalTypedAttributesIntervalOperatorImplementations
- A map mapping the attribute names to a corresponding collection of interval operators (this collection takes itself the form of a mapping from operator names to interval operator implementations). The map is required to hold at least the SPLITBY, IMINUS, IINTERSECT and ISEMPTYINTERVAL implementations for each attribute.intervalTypedAttributesIntervalTypeImplementations
- A map mapping the interval-typed attribute names to their type implementations. The keySet() of this map must be equal to the keySet() of the intervalTypedAttributesIntervalOperatorImplementations Map.public static java.util.Set<TupleBuffer> computeRangeUnionForSamePartitionRelationsAndPack(java.util.Collection<? extends TupleBuffer> r1, java.util.Collection<? extends TupleBuffer> r2, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementations, java.util.LinkedList<ValueBuffer> wrkArgList)
r1
- The first argumentr2
- The second argumentintervalTypedAttributesIntervalOperatorImplementations
- A map mapping the attribute names to a corresponding collection of interval operators (this collection takes itself the form of a mapping from operator names to interval operator implementations). The map is required to hold at least the OPERATORNAMES.SPLITBY
, OPERATORNAMES.IMINUS
, OPERATORNAMES.IINTERSECT
and OPERATORNAMES.ISEMPTYINTERVAL
implementations for each attribute.attributeIntervalTypeImplementations
- A map mapping the interval-typed attribute names to their type implementations. The keySet() of this map must be equal to the keySet() of the intervalTypedAttributesIntervalOperatorImplementations Map.wrkArgList
- A linkedlist that can be used as a working object when invoking the interval operatorspublic ValueBuffer executeOperator(java.util.LinkedList<ValueBuffer> args)
OperatorImplementation_V0104
executeOperator
in interface OperatorImplementation_V0104
args
- 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()
OperatorImplementation_V0104
getArgumentTypeNames
in interface OperatorImplementation_V0104
public ValueBuffer getIdentityElement()
AggregationOperatorImplementation
getIdentityElement
in interface AggregationOperatorImplementation
public TypeDeclaration getReturnTypeDeclaration()
OperatorImplementation_V0105
getReturnTypeDeclaration
in interface OperatorImplementation_V0105
public java.lang.String getReturnTypeName()
OperatorImplementation_V0104
getReturnTypeName
in interface OperatorImplementation_V0104
public java.lang.String getSignature()
OperatorImplementation_V0104
getSignature
in interface OperatorImplementation_V0104
public boolean isDeterministic()
OperatorImplementation_V0104
isDeterministic
in interface OperatorImplementation_V0104
public void readExternal(java.io.ObjectInput in)
readExternal
in interface java.io.Externalizable
public void writeExternal(java.io.ObjectOutput out)
writeExternal
in interface java.io.Externalizable