org.gcube.data.streams.dsl.from
Class RsStringWithClause

java.lang.Object
  extended by org.gcube.data.streams.dsl.from.RsStringWithClause

public class RsStringWithClause
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
RsStringWithClause(org.gcube.data.streams.dsl.from.RsEnv<gr.uoa.di.madgik.grs.record.GenericRecord> env)
          Creates an instance with a RsEnv.
 
Method Summary
 Stream<String> withDefaults()
          Returns a Stream with a ResultsetStream.default_timeout in a ResultsetStream.default_timeout_unit on the input resultset.
 Stream<String> 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

RsStringWithClause

public RsStringWithClause(org.gcube.data.streams.dsl.from.RsEnv<gr.uoa.di.madgik.grs.record.GenericRecord> env)
Creates an instance with a RsEnv.

Parameters:
env - the environment
Method Detail

withTimeout

public Stream<String> 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<String> 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.