Package org.rumbledb.runtime.typing
Class CastIterator
java.lang.Object
org.rumbledb.runtime.plan.RuntimePlan<Item>
org.rumbledb.runtime.plan.ItemRuntimePlan
org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
org.rumbledb.runtime.typing.CastIterator
- All Implemented Interfaces:
Serializable,AtMostOneLocalRuntimePlan<Item>,LocalRuntimePlan<Item>,NativeQueryRuntimePlan
public class CastIterator
extends AbstractAtMostOneItemRuntimePlan
implements NativeQueryRuntimePlan
- See Also:
-
Field Summary
Fields inherited from class org.rumbledb.runtime.plan.RuntimePlan
staticContext -
Constructor Summary
ConstructorsConstructorDescriptionCastIterator(ItemRuntimePlan child, SequenceType sequenceType, RuntimeStaticContext staticContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemcastItemToType(Item item, ItemType targetType, ExceptionMetadata metadata) static ItemcastItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, RuntimeStaticContext staticContext) static ItemcastItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, StaticContext staticContext) static ItemcastItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, NamespaceBindingUtils.NamespaceResolver namespaceResolver) 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) evaluateAtMostOne(DynamicContext dynamicContext) Evaluates the plan without allocating a cursor.generateNativeQuery(NativeClauseContext nativeClauseContext) Methods inherited from class org.rumbledb.runtime.AbstractAtMostOneItemRuntimePlan
createNativeCursorMethods inherited from class org.rumbledb.runtime.plan.ItemRuntimePlan
getChild, getChildren, getStaticType, getVariableDependencies, isSparkJobNeeded, printMethods inherited from class org.rumbledb.runtime.plan.RuntimePlan
getConfiguration, getCursor, getDataFrame, getMetadata, getRDD, getRuntimeStaticContext, materialize, materializeAtMost, materializeAtMostOne, materializeExactlyOne, materializeFirstOrNull
-
Constructor Details
-
CastIterator
public CastIterator(ItemRuntimePlan child, SequenceType sequenceType, RuntimeStaticContext staticContext)
-
-
Method Details
-
evaluateAtMostOne
Description copied from interface:AtMostOneLocalRuntimePlanEvaluates the plan without allocating a cursor.- Specified by:
evaluateAtMostOnein interfaceAtMostOneLocalRuntimePlan<Item>- Specified by:
evaluateAtMostOnein classAbstractAtMostOneItemRuntimePlan- Parameters:
dynamicContext- the dynamic context for the evaluation- Returns:
- the value, or
nullfor the empty sequence
-
castItemToType
-
castItemToType
public static Item castItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, RuntimeStaticContext staticContext) -
castItemToType
public static Item castItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, StaticContext staticContext) -
castItemToType
public static Item castItemToType(Item item, ItemType targetType, ExceptionMetadata metadata, NamespaceBindingUtils.NamespaceResolver namespaceResolver) -
checkFacetsInteger
-
checkFacetsNull
-
checkFacetsString
-
checkFacetsBoolean
-
checkFacetsDouble
-
checkFacetsFloat
-
checkFacetsDecimal
-
checkFacetsAnyURI
-
checkFacetsBase64Binary
-
checkFacetsHexBinary
-
checkDateTimeMinMaxFacets
-
checkFacetsDate
-
checkFacetsTime
-
checkFacetsDateTime
-
checkFacetsDateTimeStamp
-
checkFacetsDuration
-
generateNativeQuery
- Specified by:
generateNativeQueryin interfaceNativeQueryRuntimePlan
-