public class HdfsDataSourcesProvider extends Object implements DataSourcesProvider
Create a HDFS sink based on the URI and properties. The URI has the format of hdfs://host:port/path-to-file The properties are in JSON format which specifies the name / path of the hdfs file and etc.
| Constructor and Description | 
|---|
| HdfsDataSourcesProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| ISqlStreamsDataSource | constructStreams(URI uri,
                String inputFormatClass,
                String outputFormatClass,
                Properties properties,
                List<FieldInfo> fields)Construct a new data source for streams mode. | 
| String | scheme()Get the scheme of the data source. | 
public String scheme()
DataSourcesProviderGet the scheme of the data source.
scheme in interface DataSourcesProviderpublic ISqlStreamsDataSource constructStreams(URI uri, String inputFormatClass, String outputFormatClass, Properties properties, List<FieldInfo> fields)
DataSourcesProviderConstruct a new data source for streams mode.
constructStreams in interface DataSourcesProvideruri - 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.Copyright © 2022 The Apache Software Foundation. All rights reserved.