@OperatorGeneratorCharacteristics(maximumArgumentCount=2, minimumArgumentCount=2, name="UNPACK", signature={EXPRESSION,STRING}) @MonoRelationOperator public abstract class UNPACK extends RelationalOperator
| Constructor and Description |
|---|
UNPACK() |
| Modifier and Type | Method and Description |
|---|---|
static IRelation |
computeUnpack(Relation relation,
NameIdentifier... unpackAttributes) |
static UNPACK_RELATION |
getInstance(Heading heading,
java.util.Set<NameIdentifier> unpackAttributes)
Gets an instance of an UNPACK operator for the given heading and unpack specification
|
OperatorImplementation_V0105 |
getOperatorImplementation(OperatorGeneratorArgument[] args)
Gets an implementation instance of the operator.
|
static MyReadOnlyMap<NameIdentifier,IntervalTypeImplementation> |
prepareIntervalTypeImplementationsMap(MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations)
Deprecated.
- best replaced with the method from
IntervalMapsForHeading |
getInvocationName, getMaximumArgumentCount, getMinimumArgumentCount, getName, getOperatorGeneratorSignature, isMonoRelationOperator, toStringpublic static IRelation computeUnpack(Relation relation, NameIdentifier... unpackAttributes) throws EvaluationException
relation - the relation to be unpackedunpackAttributes - the interval-typed attributes over which the relation is to be unpackedEvaluationException - if the evaluation fails for any reason of invalid arguments. The contained exception cause will provide more detail.public static UNPACK_RELATION getInstance(Heading heading, java.util.Set<NameIdentifier> unpackAttributes) throws NonExistingAttributeException, AttributeNotIntervalTypedException, TypeIsNotOrdinalException
heading - The heading of the relation to be unpackedunpackAttributes - The in-order list of interval-typed attributes to be unpacked overNonExistingAttributeException - if an unpack attribute is specified that is not present in the inputAttributeNotIntervalTypedException - if an unpack attribute is specified that is not interval-typedTypeIsNotOrdinalException - If the unpack attribute is of an interval type that is not based on an ordinal base type@Deprecated public static MyReadOnlyMap<NameIdentifier,IntervalTypeImplementation> prepareIntervalTypeImplementationsMap(MyReadOnlyLinkedHashMap<NameIdentifier,java.util.Map<java.lang.String,OperatorImplementation_V0104>> intervalTypedAttributesIntervalOperatorImplementations)
IntervalMapsForHeadingintervalTypedAttributesIntervalOperatorImplementations - A map of attribute name to interval operator implementations mappings as it typically gets used in Relational computations involving Allen operators.public final OperatorImplementation_V0105 getOperatorImplementation(OperatorGeneratorArgument[] args) throws NotFoundException
OperatorGeneratorargs - The arguments from which the instance is to be created. There must be exactly as many arguments as there are elements in the list returned from OperatorGenerator.getOperatorGeneratorSignature(). The correspondence between OperatorGeneratorArgumentType values and OperatorGeneratorArgument types is given in the table below :
NotFoundException - If the given OperatorGeneratorArguments do not satisfy all of the rules of the OperatorGenerator. These rules are specific to each OperatorGenerator.