Package com.streambase.sb.unittest
Class JSONTupleMaker
- java.lang.Object
-
- com.streambase.sb.unittest.AbstractTupleMaker<String>
-
- com.streambase.sb.unittest.JSONTupleMaker
-
- All Implemented Interfaces:
TupleMaker<String>
- Direct Known Subclasses:
JSONSingleQuotesTupleMaker
public class JSONTupleMaker extends AbstractTupleMaker<String>
A factory to buildTuple
s from JSON formattedString
s.Note that for StreamBase Blobs, you should use JSON string values.
- Since:
- 6.6
- See Also:
TupleMaker
-
-
Field Summary
Fields Modifier and Type Field Description static JSONTupleMaker
MAKER
StaticJSONTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
-
Constructor Summary
Constructors Constructor Description JSONTupleMaker()
-
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 JSONTupleMaker MAKER
StaticJSONTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
- See Also:
JSONTupleMaker
-
-
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
-
-