org.gcube.data.streams.dsl.publish
Class PublishRsUsingClause<E>

java.lang.Object
  extended by org.gcube.data.streams.dsl.StreamClause<E,PublishRsEnv<E>>
      extended by org.gcube.data.streams.dsl.publish.PublishRsUsingClause<E>

public class PublishRsUsingClause<E>
extends StreamClause<E,PublishRsEnv<E>>

The clause of publish sentences in which the type of Records is configured on the output resultset.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.data.streams.dsl.StreamClause
env
 
Constructor Summary
PublishRsUsingClause(Stream<E> stream)
          Creates an instance with an input Stream.
 
Method Summary
 PublishRsWithClause<E> using(Generator<E,String> serialiser)
          Configures a serialiser for the elements of the input Stream.
 PublishRsWithClause<E> using(RecordFactory<E> factory)
          Configures a RecordFactory for the elements of the input Stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishRsUsingClause

public PublishRsUsingClause(Stream<E> stream)
Creates an instance with an input Stream.

Parameters:
stream - the stream
Method Detail

using

public PublishRsWithClause<E> using(Generator<E,String> serialiser)
Configures a serialiser for the elements of the input Stream.

Parameters:
serialiser - the serialiser
Returns:
the next clause in the sentence

using

public PublishRsWithClause<E> using(RecordFactory<E> factory)
Configures a RecordFactory for the elements of the input Stream.

Parameters:
factory - the factory
Returns:
the next clause in the sentence


Copyright © 2012. All Rights Reserved.