public abstract class AbstractTupleMaker<T> extends Object implements TupleMaker<T>
TupleMaker
in terms of
AbstractTupleMaker.createTuple(Schema, Object)
.Constructor and Description |
---|
AbstractTupleMaker() |
Modifier and Type | Method and Description |
---|---|
abstract Tuple |
createTuple(Schema schema,
T t)
create a
Tuple s from an input object |
List<Tuple> |
createTuples(Schema schema,
Collection<T> ts)
create multiple
Tuple s from input objects |
List<Tuple> |
createTuples(Schema schema,
T... ts)
create multiple
Tuple s from input objects |
public abstract Tuple createTuple(Schema schema, T t) throws StreamBaseException
TupleMaker
Tuple
s from an input objectcreateTuple
in interface TupleMaker<T>
schema
- the schema for the tuplet
- the input data to build it fromStreamBaseException
public List<Tuple> createTuples(Schema schema, T... ts) throws StreamBaseException
TupleMaker
Tuple
s from input objectscreateTuples
in interface TupleMaker<T>
schema
- the schema for the tuplets
- the input data to build it fromStreamBaseException
public List<Tuple> createTuples(Schema schema, Collection<T> ts) throws StreamBaseException
TupleMaker
Tuple
s from input objectscreateTuples
in interface TupleMaker<T>
schema
- the schema for the tuplets
- the input data to build it fromStreamBaseException