Class ContextOrArgumentLocalCursor<O>

java.lang.Object
org.rumbledb.runtime.cursor.AbstractLocalCursor<O>
org.rumbledb.runtime.cursor.ContextOrArgumentLocalCursor<O>
All Implemented Interfaces:
AutoCloseable, Cursor<O>

public final class ContextOrArgumentLocalCursor<O> extends AbstractLocalCursor<O>
Resolves an explicit argument, or the context item when the argument is omitted, and maps the resolved value.

An explicitly supplied empty sequence is passed to the mapper as null. A missing argument instead resolves the context item, preserving the distinction required by context-dependent functions.