public interface TupleMaker<T>
name : String
address : String
phone : string
You could use the tuple maker like this:
Tuple tuple = tupleMaker.createTuple(schema, "Joe Smith", "101 Main St", "508-555-1212");
Examine the subclasses of TupleMaker in the see section for concrete implementations.JSONSingleQuotesTupleMaker,
JSONTupleMaker,
ObjectArrayTupleMaker,
CSVTupleMaker| Modifier and Type | Method and Description |
|---|---|
Tuple |
createTuple(Schema schema,
T t)
create a
Tuples from an input object |
java.util.List<Tuple> |
createTuples(Schema schema,
java.util.Collection<T> t)
create multiple
Tuples from input objects |
java.util.List<Tuple> |
createTuples(Schema schema,
T... t)
create multiple
Tuples from input objects |
Tuple createTuple(Schema schema, T t) throws StreamBaseException
Tuples from an input objectschema - the schema for the tuplet - the input data to build it fromStreamBaseExceptionjava.util.List<Tuple> createTuples(Schema schema, T... t) throws StreamBaseException
Tuples from input objectsschema - the schema for the tuplet - the input data to build it fromStreamBaseExceptionjava.util.List<Tuple> createTuples(Schema schema, java.util.Collection<T> t) throws StreamBaseException
Tuples from input objectsschema - the schema for the tuplet - the input data to build it fromStreamBaseException