Package com.streambase.sb.unittest
Class AbstractTupleMaker<T>
- java.lang.Object
 - 
- com.streambase.sb.unittest.AbstractTupleMaker<T>
 
 
- 
- Type Parameters:
 T- Tuple type
- All Implemented Interfaces:
 TupleMaker<T>
- Direct Known Subclasses:
 CSVTupleMaker,JSONTupleMaker,ObjectArrayTupleMaker
public abstract class AbstractTupleMaker<T> extends Object implements TupleMaker<T>
A convenience class which implements all of the methods ofTupleMakerin terms ofcreateTuple(Schema, Object).- Since:
 - 6.6
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractTupleMaker() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TuplecreateTuple(Schema schema, T t)create aTuples from an input objectList<Tuple>createTuples(Schema schema, Collection<T> ts)create multipleTuples from input objectsList<Tuple>createTuples(Schema schema, T... ts)create multipleTuples from input objects 
 - 
 
- 
- 
Method Detail
- 
createTuple
public abstract Tuple createTuple(Schema schema, T t) throws StreamBaseException
Description copied from interface:TupleMakercreate aTuples from an input object- Specified by:
 createTuplein interfaceTupleMaker<T>- Parameters:
 schema- the schema for the tuplet- the input data to build it from- Returns:
 - the result tuple
 - Throws:
 StreamBaseException- Error creating tuple
 
- 
createTuples
public List<Tuple> createTuples(Schema schema, T... ts) throws StreamBaseException
Description copied from interface:TupleMakercreate multipleTuples from input objects- Specified by:
 createTuplesin interfaceTupleMaker<T>- Parameters:
 schema- the schema for the tuplets- the input data to build it from- Returns:
 - the result tuple
 - Throws:
 StreamBaseException- Error creating tuple
 
- 
createTuples
public List<Tuple> createTuples(Schema schema, Collection<T> ts) throws StreamBaseException
Description copied from interface:TupleMakercreate multipleTuples from input objects- Specified by:
 createTuplesin interfaceTupleMaker<T>- Parameters:
 schema- the schema for the tuplets- the input data to build it from- Returns:
 - the result tuple
 - Throws:
 StreamBaseException- Error creating tuples
 
 - 
 
 -