Package org.rumbledb.runtime.cursor
Class MappingLocalCursor<I,O>
java.lang.Object
org.rumbledb.runtime.cursor.AbstractLocalCursor<O>
org.rumbledb.runtime.cursor.MappingLocalCursor<I,O>
- Type Parameters:
I- the input typeO- the output type
- All Implemented Interfaces:
AutoCloseable,Cursor<O>
Cursor that lazily applies a one-to-one transformation to another local plan.
-
Constructor Summary
ConstructorsConstructorDescriptionMappingLocalCursor(@NonNull RuntimePlan<I> inputPlan, @NonNull DynamicContext context, @NonNull Function<? super I, ? extends O> mapper, @NonNull ExceptionMetadata metadata) -
Method Summary
Methods inherited from class org.rumbledb.runtime.cursor.AbstractLocalCursor
close, getMetadata, hasNext, invalidState, next
-
Constructor Details
-
MappingLocalCursor
public MappingLocalCursor(@NonNull @NonNull RuntimePlan<I> inputPlan, @NonNull @NonNull DynamicContext context, @NonNull @NonNull Function<? super I, ? extends O> mapper, @NonNull @NonNull ExceptionMetadata metadata)
-
-
Method Details
-
openLocal
protected void openLocal()- Specified by:
openLocalin classAbstractLocalCursor<O>
-
hasNextLocal
protected boolean hasNextLocal()- Specified by:
hasNextLocalin classAbstractLocalCursor<O>
-
nextLocal
- Specified by:
nextLocalin classAbstractLocalCursor<O>
-
closeLocal
protected void closeLocal()- Specified by:
closeLocalin classAbstractLocalCursor<O>
-