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.BaseForMappingOperator
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 BaseForMappingOperator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String[]protected final QL1protected final SourceReferenceFields inherited from class se.liu.ida.hefquin.mappings.algebra.ops.BaseForMappingOperator
id -
Constructor Summary
ConstructorsConstructorDescriptionMappingOpExtract(SourceReference sr, SourceType<DDS, DC1, DC2, QL1, QL2> type, QL1 query, Map<String, QL2> P) -
Method Summary
Modifier and TypeMethodDescriptionprotected MappingRelationcreateMappingRelation(DDS d, DC1 cxtObj) protected List<org.apache.jena.graph.Node[]> determineValuesPerAttribute(DDS d, DC1 cxtObj) The returned list contains one array per each of the attributes inattributesOfP, where the i-th array in the list is for the i-th attribute and contains the values that have been determined by evaluating the i-th query inqueriesOfPin the context of the given context object.evaluate(Map<SourceReference, DataObject> srMap) getIthAttributeOfP(int i) getQuery()intbooleanisValid()booleanisValidInput(Map<SourceReference, DataObject> srMap) voidvisit(MappingOperatorVisitor visitor) Methods inherited from class se.liu.ida.hefquin.mappings.algebra.ops.BaseForMappingOperator
getID
-
Field Details
-
sr
-
type
protected final SourceType<DDS extends DataObject,DC1 extends DataObject, typeDC2 extends DataObject, QL1 extends Query, QL2 extends Query> -
query
-
attributesOfP
-
queriesOfP
-
schema
-
-
Constructor Details
-
MappingOpExtract
-
-
Method Details
-
getSourceReference
-
getSourceType
-
getQuery
-
getSizeOfP
public int getSizeOfP() -
getIthAttributeOfP
-
getQueriesOfP
-
getSchema
-
isValid
public boolean isValid() -
visit
-
isValidInput
-
evaluate
-
createMappingRelation
-
determineValuesPerAttribute
The returned list contains one array per each of the attributes inattributesOfP, where the i-th array in the list is for the i-th attribute and contains the values that have been determined by evaluating the i-th query inqueriesOfPin the context of the given context object.
-