public abstract class PACK_RELATION_STRING
extends java.lang.Object
Constructor and Description |
---|
PACK_RELATION_STRING() |
Modifier and Type | Method and Description |
---|---|
static RelationBuffer |
computePack(RelationBuffer relationBuffer,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> attributeIntervalOperatorImplementationsMap,
java.util.Set<NameIdentifier> partitioningKeys,
java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementationsMap)
Gets A relationBuffer holding the result of the packing
|
static java.util.Set<TupleBuffer> |
packPartition(java.util.Collection<TupleBuffer> in,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementations)
Packs the given collection of tuplebuffers by merging the mergeable tuples.
|
static java.util.Set<TupleBuffer> |
packPartitionOld(java.util.Collection<TupleBuffer> in,
MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations,
java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
Packs the given collection of tuplebuffers by merging the mergeable tuples.
|
static PACKInvocationResultDetails |
validateExpressionDetails(Heading inputHeading,
java.util.LinkedHashSet<NameIdentifier> packAttributeNames,
java.lang.String inputPredicate,
java.util.Collection<? extends KeyDef> inputKeySpecifications) |
public static java.util.Set<TupleBuffer> packPartition(java.util.Collection<TupleBuffer> in, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementations)
in
- The collection of tuplebuffers to be canonicalized over the given set of interval-typed attributes. The precondition for this argument is that all tuplebuffers held in the collection hold equal attribute values for all the attributes not mentioned in (as a key in) intervalTypedAttributesIntervalOperatorImplementations. This precondition is not checked.intervalTypedAttributesIntervalOperatorImplementations
- The map holding the OperatorImplementation objects for all of the interval-typed attributes, through which the needed interval operators can be accessedattributeIntervalTypeImplementations
- The map holding the IntervalTypeImplementation objects for all of the interval-typed attributes, through which the needed interval operators can be accessedpublic static java.util.Set<TupleBuffer> packPartitionOld(java.util.Collection<TupleBuffer> in, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations, java.util.Map<NameIdentifier,IntervalTypeImplementation> intervalTypedAttributesIntervalTypeImplementations)
in
- The collection of tuplebuffers to be canonicalized over the given set of interval-typed attributes. The precondition for this argument is that all tuplebuffers held in the collection hold equal attribute values for all the attributes not mentioned in (as a key in) intervalTypedAttributesIntervalOperatorImplementations. This precondition is not checked.intervalTypedAttributesIntervalOperatorImplementations
- The map holding the Interval Type objects for all of the interval-typed attributes, through which the needed interval operators can be accessedintervalTypedAttributesIntervalTypeImplementations
- 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 RelationBuffer computePack(RelationBuffer relationBuffer, MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> attributeIntervalOperatorImplementationsMap, java.util.Set<NameIdentifier> partitioningKeys, java.util.Map<NameIdentifier,IntervalTypeImplementation> attributeIntervalTypeImplementationsMap)
relationBuffer
- The buffer holding the relation to be packedattributeIntervalOperatorImplementationsMap
- The pack attributes' interval operator implementations map. The map's keySet() reflects the ordering of the pack attributespartitioningKeys
- The partitioning keys, i.e. all the attributes of the relation that do not appear in the pack() specificationattributeIntervalTypeImplementationsMap
- The map holding the IntervalTypeImplementation objects for all of the interval-typed attributes, through which the needed interval operators can be accessedpublic static PACKInvocationResultDetails validateExpressionDetails(Heading inputHeading, java.util.LinkedHashSet<NameIdentifier> packAttributeNames, java.lang.String inputPredicate, java.util.Collection<? extends KeyDef> inputKeySpecifications) throws AttributeNotIntervalTypedException, NonExistingAttributeException
inputHeading
- the heading of a relation subjected to a PACK operationpackAttributeNames
- the attributes using which to PACK the given relationinputPredicate
- the predicate of which the relation subjected to PACK is the extensioninputKeySpecifications
- the key specifications known to be satisfied by the relation subjected to PACKAttributeNotIntervalTypedException
- If an attribute mentioned in the pack list is not interval-typed in the given headingNonExistingAttributeException
- If an attribute name is mentioned in the pack list that does not appear in the heading