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 ofTupleMaker
in 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 Tuple
createTuple(Schema schema, T t)
create aTuple
s from an input objectList<Tuple>
createTuples(Schema schema, Collection<T> ts)
create multipleTuple
s from input objectsList<Tuple>
createTuples(Schema schema, T... ts)
create multipleTuple
s from input objects
-
-
-
Method Detail
-
createTuple
public abstract Tuple createTuple(Schema schema, T t) throws StreamBaseException
Description copied from interface:TupleMaker
create aTuple
s from an input object- Specified by:
createTuple
in 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:TupleMaker
create multipleTuple
s from input objects- Specified by:
createTuples
in 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:TupleMaker
create multipleTuple
s from input objects- Specified by:
createTuples
in 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
-
-