public class JSONTupleMaker extends AbstractTupleMaker<String>
Tuple
s from JSON formatted String
s.
Note that for StreamBase Blobs, you should use JSON string values.
TupleMaker
Modifier and Type | Field and Description |
---|---|
static JSONTupleMaker |
MAKER
Static
JSONTupleMaker instance suitable as argument to Enqueuer and Expecter
methods that need a TupleMaker |
Constructor and Description |
---|
JSONTupleMaker() |
Modifier and Type | Method and Description |
---|---|
Tuple |
createTuple(Schema schema,
String str)
create a
Tuple s from an input object |
createTuples, createTuples
public static final JSONTupleMaker MAKER
JSONTupleMaker
instance suitable as argument to Enqueuer
and Expecter
methods that need a TupleMaker
JSONTupleMaker
public Tuple createTuple(Schema schema, String str) throws StreamBaseException
TupleMaker
Tuple
s from an input objectcreateTuple
in interface TupleMaker<String>
createTuple
in class AbstractTupleMaker<String>
schema
- the schema for the tuplestr
- the input data to build it fromStreamBaseException