public final class JOIN_RELATION_RELATION extends java.lang.Object implements AggregationOperatorImplementation
JOINUSING_RELATION_RELATION
, where the third argument mentions all the interval-typed attributes of the RELATION arguments' headings, in lexicographical order.Constructor and Description |
---|
JOIN_RELATION_RELATION()
Deprecated.
- this constructor is available only for use in the context of the Externalizable machinery
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<TupleBuffer> |
computePlainJoin(MyReadOnlySet<TupleBuffer> r1,
MyReadOnlySet<TupleBuffer> r2)
Computes the "plain" JOIN between the given relation arguments.
|
static java.util.Set<TupleBuffer> |
computePlainJoin(MyReadOnlySet<TupleBuffer> r1,
MyReadOnlySet<TupleBuffer> r2,
java.util.Set<NameIdentifier> partitioningKeys)
Computes the "plain" JOIN between the given relation arguments.
|
static RelationBuffer |
computePlainJoin(RelationBuffer relationBuffer,
RelationBuffer relationBuffer2) |
static RelationBuffer |
computeUsingJoin(RelationBuffer relationBuffer,
RelationBuffer relationBuffer2,
java.util.Set<NameIdentifier> partitioningKeys,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations) |
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.
|
static AggregationOperatorImplementation |
getInstance(Heading heading1,
Heading heading2)
Gets an instance of the operator for the given headings
|
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) |
static JOINInvocationResultDetails |
validateExpressionDetails(Heading arg1Heading,
Heading arg2Heading,
java.util.LinkedHashSet<NameIdentifier> usingAttributes,
java.lang.String predicate1,
java.lang.String predicate2,
java.util.Collection<? extends KeyDef> arg1KeySpecifications,
java.util.Collection<? extends KeyDef> arg2KeySpecifications) |
void |
writeExternal(java.io.ObjectOutput out) |
@Deprecated public JOIN_RELATION_RELATION()
public static java.util.Set<TupleBuffer> computePlainJoin(MyReadOnlySet<TupleBuffer> r1, MyReadOnlySet<TupleBuffer> r2, java.util.Set<NameIdentifier> partitioningKeys)
r1
- the first tuples collectionr2
- the second tuples collectionpartitioningKeys
- the full set of join attribute names. Must be equal to the set of common attributes between r1 and r2.public static java.util.Set<TupleBuffer> computePlainJoin(MyReadOnlySet<TupleBuffer> r1, MyReadOnlySet<TupleBuffer> r2)
r1
- the first tuples collectionr2
- the second tuples collectionpublic static AggregationOperatorImplementation getInstance(Heading heading1, Heading heading2)
heading1
- The heading of the first argument to the joinheading2
- The heading of the second argument to the joinpublic 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() throws NoIdentityElementException
AggregationOperatorImplementation
getIdentityElement
in interface AggregationOperatorImplementation
NoIdentityElementException
- if no such element exists within the (finite bounds of the) operator's domain.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) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public static RelationBuffer computePlainJoin(RelationBuffer relationBuffer, RelationBuffer relationBuffer2)
relationBuffer
- A relation to be joined with the other onerelationBuffer2
- The other relation, to be joined with the former onepublic static RelationBuffer computeUsingJoin(RelationBuffer relationBuffer, RelationBuffer relationBuffer2, java.util.Set<NameIdentifier> partitioningKeys, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
relationBuffer
- A relation to be joined with the other onerelationBuffer2
- The other relation, to be joined with the former onepartitioningKeys
- The set of all join attributes that are not to be treated in "range" mode for the computation.intervalTypedAttributesIntervalOperatorImplementations
- The mapping from interval-typed join attribute names to their Interval types, to gain accessibility to the interval operators. The entries are ordered in the packing order for the result.intervalTypedAttributesIntervalTypeImplementations
- The map holding the IntervalTypeImplementation objects for all of the interval-typed attributes, through which the needed interval operators can be accessedpublic static JOINInvocationResultDetails validateExpressionDetails(Heading arg1Heading, Heading arg2Heading, java.util.LinkedHashSet<NameIdentifier> usingAttributes, java.lang.String predicate1, java.lang.String predicate2, java.util.Collection<? extends KeyDef> arg1KeySpecifications, java.util.Collection<? extends KeyDef> arg2KeySpecifications) throws IncompatibleJoinHeadingsException, AttributeNotIntervalTypedException, JoinUsingAttributeNotCommonBetweenArgumentsException
arg1Heading
- A relation to be joined with the other onearg2Heading
- The other relation, to be joined with the former oneusingAttributes
- the interval-typed attributes, in-order, that are to be applied in 'USING' mode by the joinpredicate1
- The predicate of which the first relation argument is the extensionpredicate2
- The predicate of which the second relation argument is the extensionarg1KeySpecifications
- The key specifications known to be satisfied by arg1arg2KeySpecifications
- The key specifications known to be satisfied by arg2IncompatibleJoinHeadingsException
- If the two headings are not join-compatible.AttributeNotIntervalTypedException
- If an attribute mentioned in usingAttributes is not interval-typedJoinUsingAttributeNotCommonBetweenArgumentsException
- If an attribute mentioned in the usingAttributes is not an attribute in both arguments