Package com.streambase.sb.unittest
Class JSONTupleMaker
- All Implemented Interfaces:
TupleMaker<String>
- Direct Known Subclasses:
JSONSingleQuotesTupleMaker
A factory to build
Tuples from JSON formatted Strings.
Note that for StreamBase Blobs, you should use JSON string values.
- Since:
- 6.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JSONTupleMakerStaticJSONTupleMakerinstance suitable as argument toEnqueuerandExpectermethods that need aTupleMaker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTuple(Schema schema, String str) create aTuples from an input objectMethods inherited from class com.streambase.sb.unittest.AbstractTupleMaker
createTuples, createTuples
-
Field Details
-
MAKER
StaticJSONTupleMakerinstance suitable as argument toEnqueuerandExpectermethods that need aTupleMaker- See Also:
-
-
Constructor Details
-
JSONTupleMaker
public JSONTupleMaker()
-
-
Method Details
-
createTuple
Description copied from interface:TupleMakercreate aTuples from an input object- Specified by:
createTuplein interfaceTupleMaker<String>- Specified by:
createTuplein 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
-