public class DataSourcesRegistry extends Object
Modifier and Type | Method and Description |
---|---|
static ISqlStreamsDataSource |
constructStreamsDataSource(URI uri,
String inputFormatClass,
String outputFormatClass,
Properties properties,
List<FieldInfo> fields)
Construct a streams data source.
|
static Map<String,DataSourcesProvider> |
providerMap()
Allow unit tests to inject data sources.
|
public static ISqlStreamsDataSource constructStreamsDataSource(URI uri, String inputFormatClass, String outputFormatClass, Properties properties, List<FieldInfo> fields)
Construct a streams data source.
uri
- data source uriinputFormatClass
- input format classoutputFormatClass
- output format classproperties
- Propertiesfields
- fields info listpublic static Map<String,DataSourcesProvider> providerMap()
Allow unit tests to inject data sources.
Copyright © 2019 The Apache Software Foundation. All rights reserved.