org.gcube.contentmanagement.gcubedocumentlibrary.streams.dsl
Class UnfoldWithClause<FROM,TO>
java.lang.Object
org.gcube.contentmanagement.gcubedocumentlibrary.streams.dsl.Clause<FROM,java.util.List<TO>>
org.gcube.contentmanagement.gcubedocumentlibrary.streams.dsl.UnfoldWithClause<FROM,TO>
public class UnfoldWithClause<FROM,TO>
- extends Clause<FROM,java.util.List<TO>>
The with clause of unfold-based sentences.
- Author:
- Fabio Simeoni (University of Strathclyde)
|
Constructor Summary |
UnfoldWithClause(Env<FROM,java.util.List<TO>> e)
Creates an instance of the clause in the evaluation environment of a given sentence. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnfoldWithClause
public UnfoldWithClause(Env<FROM,java.util.List<TO>> e)
- Creates an instance of the clause in the evaluation environment of a given sentence.
- Parameters:
e - the environment.
with
public <E extends java.lang.RuntimeException> java.util.Iterator<TO> with(IFaultPolicy<E> h)
- Configures an
IFaultPolicy for the stream in the evaluation environment.
- Type Parameters:
E - the Exception that the FaultPolicy can throw.- Parameters:
h - the FaultPolicy.
- Returns:
- a configured
Iterator.
withDefaults
public java.util.Iterator<TO> withDefaults()
- Configures an a
Streams.IGNORE_POLICY for the stream in the evaluation environment.
- Returns:
- a configured
Iterator.
withRemote
public <E extends java.lang.Exception> withRemote(IFaultPolicy<E> h)
- Configures a
IFaultPolicy for the stream in the evaluation environment.
- Type Parameters:
E - the Exception that the FaultPolicy can throw.- Parameters:
h - the FaultPolicy.
- Returns:
- a configured
RemoteIterator.
withRemoteDefaults
public withRemoteDefaults()
- Configures a
Streams.RETHROW_POLICY for the stream in the evaluation environment.
- Returns:
- a configured
RemoteIterator.