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
A convenience class which implements all of the methods of
TupleMaker
in terms of
createTuple(Schema, Object)
.- Since:
- 6.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Tuple
createTuple
(Schema schema, T t) create aTuple
s from an input objectcreateTuples
(Schema schema, Collection<T> ts) create multipleTuple
s from input objectscreateTuples
(Schema schema, T... ts) create multipleTuple
s from input objects
-
Constructor Details
-
AbstractTupleMaker
public AbstractTupleMaker()
-
-
Method Details
-
createTuple
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
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
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
-