org.gcube.data.streams.dsl.from
Class RsWithClause<R extends gr.uoa.di.madgik.grs.record.Record>

java.lang.Object
  extended by 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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

protected org.gcube.data.streams.dsl.from.RsEnv<R extends gr.uoa.di.madgik.grs.record.Record> env
Constructor Detail

RsWithClause

public RsWithClause(org.gcube.data.streams.dsl.from.RsEnv<R> env)
Creates an instance with a RsEnv.

Parameters:
env - the environment
Method Detail

withTimeout

public Stream<R> withTimeout(int timeout,
                             TimeUnit unit)
Returns a Stream with a given read timeout on the input resultset.

Parameters:
timeout - the timeout
unit - 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.