public class CSVTupleMaker extends AbstractTupleMaker<String>
TupleMaker
Modifier and Type | Field and Description |
---|---|
static CSVTupleMaker |
MAKER
Static
CSVTupleMaker instance suitable as argument to Enqueuer and Expecter
methods that need a TupleMaker . |
Constructor and Description |
---|
CSVTupleMaker(CSV.FormatInfo format)
Constructor
|
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 CSVTupleMaker MAKER
CSVTupleMaker
instance suitable as argument to Enqueuer
and Expecter
methods that need a TupleMaker
. This instance will parse CSV using CSV.DEFAULT_FORMAT
.public CSVTupleMaker(CSV.FormatInfo format)
format
- Formattingpublic 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
- Error creating tupleCopyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.