public interface TupleMaker<T>
name : String address : String phone : stringYou 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
Tuple s from an input object |
List<Tuple> |
createTuples(Schema schema,
Collection<T> t)
create multiple
Tuple s from input objects |
List<Tuple> |
createTuples(Schema schema,
T... t)
create multiple
Tuple s from input objects |
Tuple createTuple(Schema schema, T t) throws StreamBaseException
Tuple
s from an input objectschema
- the schema for the tuplet
- the input data to build it fromStreamBaseException
List<Tuple> createTuples(Schema schema, T... t) throws StreamBaseException
Tuple
s from input objectsschema
- the schema for the tuplet
- the input data to build it fromStreamBaseException
List<Tuple> createTuples(Schema schema, Collection<T> t) throws StreamBaseException
Tuple
s from input objectsschema
- the schema for the tuplet
- the input data to build it fromStreamBaseException