org.gcube.data.streams.publishers
Class RsStringRecordFactory<E>

java.lang.Object
  extended by org.gcube.data.streams.publishers.RsStringRecordFactory<E>
Type Parameters:
E - the type of the serialised values
All Implemented Interfaces:
RecordFactory<E>

public class RsStringRecordFactory<E>
extends Object
implements RecordFactory<E>

A RecordFactory for STRING_RECORDs with serialisations of Stream elements.

An untyped record is a record with a string-valued payload field.

Author:
Fabio Simeoni

Field Summary
static gr.uoa.di.madgik.grs.record.RecordDefinition STRING_RECORD
          The type definition of a record with a string-valued payload field.
 
Fields inherited from interface org.gcube.data.streams.publishers.RecordFactory
iteration
 
Constructor Summary
RsStringRecordFactory(Generator<E,String> serialiser)
          Creates an instance with a Generator that returns serialisations of Stream elements.
 
Method Summary
 gr.uoa.di.madgik.grs.record.RecordDefinition[] definitions()
          Returns the definitions of the records.
 gr.uoa.di.madgik.grs.record.GenericRecord newRecord(E element)
          Generates a Record from a Stream element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_RECORD

public static final gr.uoa.di.madgik.grs.record.RecordDefinition STRING_RECORD
The type definition of a record with a string-valued payload field.

Constructor Detail

RsStringRecordFactory

public RsStringRecordFactory(Generator<E,String> serialiser)
Creates an instance with a Generator that returns serialisations of Stream elements.

Parameters:
serialiser - the serialiser
Method Detail

newRecord

public gr.uoa.di.madgik.grs.record.GenericRecord newRecord(E element)
Description copied from interface: RecordFactory
Generates a Record from a Stream element.

Specified by:
newRecord in interface RecordFactory<E>
Parameters:
element - the element
Returns:
the record

definitions

public gr.uoa.di.madgik.grs.record.RecordDefinition[] definitions()
Description copied from interface: RecordFactory
Returns the definitions of the records.

Specified by:
definitions in interface RecordFactory<E>
Returns:
the definitions


Copyright © 2012. All Rights Reserved.