Package org.rumbledb.runtime.typing
Class InstanceOfIterator
java.lang.Object
org.rumbledb.runtime.RuntimeIterator
org.rumbledb.runtime.AtMostOneItemLocalRuntimeIterator
org.rumbledb.runtime.typing.InstanceOfIterator
- All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable
,Serializable
,RuntimeIteratorInterface
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.RuntimeIterator
children, currentDynamicContextForLocalExecution, FLOW_EXCEPTION_MESSAGE, hasNext, isOpen, isSequential, isUpdating, staticContext, staticURI
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceOfIterator
(RuntimeIterator child, SequenceType sequenceType, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
doesItemTypeMatchItem
(ItemType itemType, Item itemToMatch) Item type tests.materializeFirstItemOrNull
(DynamicContext dynamicContext) Methods inherited from class org.rumbledb.runtime.AtMostOneItemLocalRuntimeIterator
close, getEffectiveBooleanValueOrCheckPosition, getRDD, materialize, materializeAtMostOneItemOrNull, materializeExactlyOneItem, materializeNFirstItems, next, open, reset
Methods inherited from class org.rumbledb.runtime.RuntimeIterator
bindToVariableInDynamicContext, canProduceDataFrame, deepCopy, generateNativeQuery, getConfiguration, getDataFrame, getEffectiveBooleanValue, getHighestExecutionMode, getMetadata, getOrCreateDataFrame, getPendingUpdateList, getStaticType, getVariableDependencies, hasNext, isDataFrame, isLocal, isOpen, isRDD, isRDDOrDataFrame, isSequential, isSparkJobNeeded, isUpdating, materialize, materializeAtMostOneItemOrDefault, print, printToStandardError, read, setStaticContext, write
-
Constructor Details
-
InstanceOfIterator
public InstanceOfIterator(RuntimeIterator child, SequenceType sequenceType, RuntimeStaticContext staticContext)
-
-
Method Details
-
materializeFirstItemOrNull
- Specified by:
materializeFirstItemOrNull
in classAtMostOneItemLocalRuntimeIterator
-
doesItemTypeMatchItem
Item type tests. This supersedes the method isTypeOf() formerly located in the Item interface, as part of the efforts to cleanly separate item storage from item manipulation (which is the domain of responsibility of runtime iterators).- Parameters:
itemType
- the item type to match against the item.itemToMatch
- the item to match against the type.- Returns:
- true if itemToMatch matches itemType.
-