org.gcube.data.streams.dsl.from
Class RsWithClause<R extends gr.uoa.di.madgik.grs.record.Record>
java.lang.Object
org.gcube.data.streams.dsl.from.RsWithClause<R>
- Type Parameters:
R - the Record type of stream elements
public class RsWithClause<R extends gr.uoa.di.madgik.grs.record.Record>
- extends Object
A RsClause in which the adapter of the input resultset is configured.
- Author:
- Fabio Simeoni
|
Field Summary |
protected org.gcube.data.streams.dsl.from.RsEnv<R> |
env
|
|
Constructor Summary |
RsWithClause(org.gcube.data.streams.dsl.from.RsEnv<R> env)
Creates an instance with a RsEnv. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
env
protected org.gcube.data.streams.dsl.from.RsEnv<R extends gr.uoa.di.madgik.grs.record.Record> env
RsWithClause
public RsWithClause(org.gcube.data.streams.dsl.from.RsEnv<R> env)
- Creates an instance with a
RsEnv.
- Parameters:
env - the environment
withTimeout
public Stream<R> withTimeout(int timeout,
TimeUnit unit)
- Returns a
Stream with a given read timeout on the input resultset.
- Parameters:
timeout - the timeoutunit - the time unit of the timeout
- Returns:
- the stream
withDefaults
public Stream<R> withDefaults()
- Returns a
Stream with a ResultsetStream.default_timeout in a
ResultsetStream.default_timeout_unit on the input resultset.
- Returns:
- the stream
Copyright © 2012. All Rights Reserved.