Package com.streambase.sb.unittest
Class CSVTupleMaker
- java.lang.Object
-
- com.streambase.sb.unittest.AbstractTupleMaker<String>
-
- com.streambase.sb.unittest.CSVTupleMaker
-
- All Implemented Interfaces:
TupleMaker<String>
public class CSVTupleMaker extends AbstractTupleMaker<String>
- Since:
- 6.6
- See Also:
TupleMaker
-
-
Field Summary
Fields Modifier and Type Field Description static CSVTupleMaker
MAKER
StaticCSVTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
.
-
Constructor Summary
Constructors Constructor Description CSVTupleMaker(CSV.FormatInfo format)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple
createTuple(Schema schema, String str)
create aTuple
s from an input object-
Methods inherited from class com.streambase.sb.unittest.AbstractTupleMaker
createTuples, createTuples
-
-
-
-
Field Detail
-
MAKER
public static final CSVTupleMaker MAKER
StaticCSVTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
. This instance will parse CSV usingCSV.DEFAULT_FORMAT
.
-
-
Constructor Detail
-
CSVTupleMaker
public CSVTupleMaker(CSV.FormatInfo format)
Constructor- Parameters:
format
- Formatting
-
-
Method Detail
-
createTuple
public Tuple createTuple(Schema schema, String str) throws StreamBaseException
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
-
-