Package org.rumbledb.runtime.typing
Class CastIterator
java.lang.Object
org.rumbledb.runtime.RuntimeIterator
org.rumbledb.runtime.AtMostOneItemLocalRuntimeIterator
org.rumbledb.runtime.typing.CastIterator
- 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
ConstructorsConstructorDescriptionCastIterator(RuntimeIterator child, SequenceType sequenceType, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemcastItemToType(Item item, ItemType targetType, ExceptionMetadata metadata) static booleancheckDateTimeMinMaxFacets(Item item, ItemType targetType) static booleancheckFacetsAnyURI(Item item, ItemType targetType) static booleancheckFacetsBase64Binary(Item item, ItemType targetType) static booleancheckFacetsBoolean(Item item, ItemType targetType) static booleancheckFacetsDate(Item item, ItemType targetType) static booleancheckFacetsDateTime(Item item, ItemType targetType) static booleancheckFacetsDateTimeStamp(Item item, ItemType targetType) static booleancheckFacetsDecimal(Item item, ItemType targetType) static booleancheckFacetsDouble(Item item, ItemType targetType) static booleancheckFacetsDuration(Item item, ItemType targetType) static booleancheckFacetsFloat(Item item, ItemType targetType) static booleancheckFacetsHexBinary(Item item, ItemType targetType) static booleancheckFacetsInteger(Item item, ItemType targetType) static booleancheckFacetsNull(Item item, ItemType targetType) static booleancheckFacetsString(Item item, ItemType targetType) static booleancheckFacetsTime(Item item, ItemType targetType) generateNativeQuery(NativeClauseContext nativeClauseContext) This function generate (if possible) a native spark-sql query that maps the inner working of the iteratormaterializeFirstItemOrNull(DynamicContext dynamicContext) Methods inherited from class org.rumbledb.runtime.AtMostOneItemLocalRuntimeIterator
close, getEffectiveBooleanValueOrCheckPosition, getRDD, materialize, materializeAtMostOneItemOrNull, materializeExactlyOneItem, materializeNFirstItems, next, open, resetMethods inherited from class org.rumbledb.runtime.RuntimeIterator
bindToVariableInDynamicContext, canProduceDataFrame, deepCopy, 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
-
CastIterator
public CastIterator(RuntimeIterator child, SequenceType sequenceType, RuntimeStaticContext staticContext)
-
-
Method Details
-
materializeFirstItemOrNull
- Specified by:
materializeFirstItemOrNullin classAtMostOneItemLocalRuntimeIterator
-
castItemToType
-
checkFacetsInteger
-
checkFacetsNull
-
checkFacetsString
-
checkFacetsBoolean
-
checkFacetsDouble
-
checkFacetsFloat
-
checkFacetsDecimal
-
checkFacetsAnyURI
-
checkFacetsBase64Binary
-
checkFacetsHexBinary
-
checkDateTimeMinMaxFacets
-
checkFacetsDate
-
checkFacetsTime
-
checkFacetsDateTime
-
checkFacetsDateTimeStamp
-
checkFacetsDuration
-
generateNativeQuery
Description copied from class:RuntimeIteratorThis function generate (if possible) a native spark-sql query that maps the inner working of the iterator- Overrides:
generateNativeQueryin classRuntimeIterator- Parameters:
nativeClauseContext- context information to generate the native query- Returns:
- a native clause context with the spark-sql native query to get an equivalent result of the iterator, or [NativeClauseContext.NoNativeQuery] if it is not possible
-