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 |
java.util.List<Tuple> |
createTuples(Schema schema,
java.util.Collection<T> t)
create multiple
Tuple s from input objects |
java.util.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
java.util.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
java.util.List<Tuple> createTuples(Schema schema, java.util.Collection<T> t) throws StreamBaseException
Tuple
s from input objectsschema
- the schema for the tuplet
- the input data to build it fromStreamBaseException