Package com.streambase.sb.unittest
Class CSVTupleMaker
- All Implemented Interfaces:
TupleMaker<String>
- Since:
- 6.6
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CSVTupleMaker
StaticCSVTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateTuple
(Schema schema, String str) create aTuple
s from an input objectMethods inherited from class com.streambase.sb.unittest.AbstractTupleMaker
createTuples, createTuples
-
Field Details
-
MAKER
StaticCSVTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
. This instance will parse CSV usingCSV.DEFAULT_FORMAT
.
-
-
Constructor Details
-
CSVTupleMaker
public CSVTupleMaker(com.streambase.sb.util.CSV.FormatInfo format) Constructor- Parameters:
format
- Formatting
-
-
Method Details
-
createTuple
Description copied from interface:TupleMaker
create aTuple
s from an input object- Specified by:
createTuple
in interfaceTupleMaker<String>
- Specified by:
createTuple
in classAbstractTupleMaker<String>
- Parameters:
schema
- the schema for the tuplestr
- the input data to build it from- Returns:
- the result tuple
- Throws:
StreamBaseException
- Error creating tuple
-