public interface DataSourcesProvider
Modifier and Type | Method and Description |
---|---|
DataSource |
construct(URI uri,
String inputFormatClass,
String outputFormatClass,
List<FieldInfo> fields)
Construct a new data source.
|
ISqlTridentDataSource |
constructTrident(URI uri,
String inputFormatClass,
String outputFormatClass,
Properties properties,
List<FieldInfo> fields) |
String |
scheme() |
String scheme()
DataSource construct(URI uri, String inputFormatClass, String outputFormatClass, List<FieldInfo> fields)
Construct a new data source.
uri
- The URI that specifies the data source. The format of the URI is fully customizable.inputFormatClass
- the name of the class that deserializes data. It is null when unspecified.outputFormatClass
- the name of the class that serializes data. It is null when unspecified.fields
- The name of the fields and the schema of the table.ISqlTridentDataSource constructTrident(URI uri, String inputFormatClass, String outputFormatClass, Properties properties, List<FieldInfo> fields)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.