Class MappingOpExtract<DDS extends DataObject,DC1 extends DataObject,DC2 extends DataObject,QL1 extends Query,QL2 extends Query>
java.lang.Object
se.liu.ida.hefquin.mappings.algebra.ops.MappingOpExtract<DDS,DC1,DC2,QL1,QL2>
- All Implemented Interfaces:
MappingOperator
- Direct Known Subclasses:
MappingOpExtractJSON
public class MappingOpExtract<DDS extends DataObject,DC1 extends DataObject,DC2 extends DataObject,QL1 extends Query,QL2 extends Query>
extends Object
implements MappingOperator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMappingOpExtract(SourceReference sr, SourceType<DDS, DC1, DC2, QL1, QL2> type, QL1 query, Map<String, QL2> P) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the number of sub-expressions that a mapping expression is expected to have if it has this operator as its root operator.getQuery()intinthashCode()toString()voidvisit(MappingOperatorVisitor visitor)
-
Field Details
-
sr
-
type
protected final SourceType<DDS extends DataObject,DC1 extends DataObject, typeDC2 extends DataObject, QL1 extends Query, QL2 extends Query> -
query
-
P
-
-
Constructor Details
-
MappingOpExtract
-
-
Method Details
-
getSourceReference
-
getSourceType
-
getQuery
-
getSizeOfP
public int getSizeOfP() -
getAttributesOfP
-
getEntriesOfP
-
getExpectedNumberOfSubExpressions
public int getExpectedNumberOfSubExpressions()Description copied from interface:MappingOperatorReturns the number of sub-expressions that a mapping expression is expected to have if it has this operator as its root operator. Hence, for nullary operators, this method returns 0; for unary operators, it returns 1; for binary operators, it returns 2. For n-ary operators (which can be applied to an arbitrary number of sub-expressions), this method returnsInteger.MAX_VALUE.- Specified by:
getExpectedNumberOfSubExpressionsin interfaceMappingOperator
-
visit
- Specified by:
visitin interfaceMappingOperator
-
hashCode
-
equals
-
toString
-