Class MappingOpUnion.MyCursor
java.lang.Object
se.liu.ida.hefquin.mappings.algebra.ops.MappingOpUnion.MyCursor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MappingRelationCursorThis is the schema ofcurrentInput, which we need to remember to be able to check whethercurrentSchemaMappingneeds to be updated when we move to the next non-emptycurrentInput.protected int[]The i-th position in this array corresponds to the i-th attribute in the schema ofmyRelationand the integer at that position in the array is the position of the same attribute incurrentInputSchema.protected final MappingRelationprotected final Map<SourceReference, DataObject> protected final Iterator<MappingOperator> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadvance()Returns the mapping relation over which this cursor iterates.org.apache.jena.graph.NodegetValueOfCurrentTuple(int idxOfAttribute) booleanhasNext()protected voidupdateSchemaMapping(List<String> inputSchema)
-
Field Details
-
myRelation
-
srMap
-
subOpIt
-
currentInput
-
currentInputSchema
This is the schema ofcurrentInput, which we need to remember to be able to check whethercurrentSchemaMappingneeds to be updated when we move to the next non-emptycurrentInput. -
currentSchemaMapping
protected int[] currentSchemaMappingThe i-th position in this array corresponds to the i-th attribute in the schema ofmyRelationand the integer at that position in the array is the position of the same attribute incurrentInputSchema. As an optimization, the array is null if the two schemas coincide.
-
-
Constructor Details
-
MyCursor
-
-
Method Details
-
getMappingRelation
Description copied from interface:MappingRelationCursorReturns the mapping relation over which this cursor iterates.- Specified by:
getMappingRelationin interfaceMappingRelationCursor
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceMappingRelationCursor
-
updateSchemaMapping
-
advance
public void advance()- Specified by:
advancein interfaceMappingRelationCursor
-
getValueOfCurrentTuple
public org.apache.jena.graph.Node getValueOfCurrentTuple(int idxOfAttribute) - Specified by:
getValueOfCurrentTuplein interfaceMappingRelationCursor
-