Package com.streambase.sb.unittest
Class JSONTupleMaker
- All Implemented Interfaces:
TupleMaker<String>
- Direct Known Subclasses:
JSONSingleQuotesTupleMaker
A factory to build
Tuple
s from JSON formatted String
s.
Note that for StreamBase Blobs, you should use JSON string values.
- Since:
- 6.6
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JSONTupleMaker
StaticJSONTupleMaker
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
StaticJSONTupleMaker
instance suitable as argument toEnqueuer
andExpecter
methods that need aTupleMaker
- See Also:
-
-
Constructor Details
-
JSONTupleMaker
public JSONTupleMaker()
-
-
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
-