R - the Record type of stream elementspublic class RsWithClause<R extends gr.uoa.di.madgik.grs.record.Record> extends Object
RsClause in which the adapter of the input resultset is configured.| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.data.streams.dsl.from.RsEnv<R> |
env |
| Constructor and Description |
|---|
RsWithClause(org.gcube.data.streams.dsl.from.RsEnv<R> env)
Creates an instance with a
RsEnv. |
| Modifier and Type | Method and Description |
|---|---|
Stream<R> |
withDefaults()
Returns a
Stream with a ResultsetStream.default_timeout in a
ResultsetStream.default_timeout_unit on the input resultset. |
Stream<R> |
withTimeout(int timeout,
TimeUnit unit)
Returns a
Stream with a given read timeout on the input resultset. |
protected org.gcube.data.streams.dsl.from.RsEnv<R extends gr.uoa.di.madgik.grs.record.Record> env
public RsWithClause(org.gcube.data.streams.dsl.from.RsEnv<R> env)
RsEnv.env - the environmentpublic Stream<R> withTimeout(int timeout, TimeUnit unit)
Stream with a given read timeout on the input resultset.timeout - the timeoutunit - the time unit of the timeoutpublic Stream<R> withDefaults()
Stream with a ResultsetStream.default_timeout in a
ResultsetStream.default_timeout_unit on the input resultset.Copyright © 2015. All Rights Reserved.