public class MongoDataSourcesProvider extends Object implements DataSourcesProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_NAME |
static String |
DEFAULT_VALUE_SERIALIZED_FIELD |
static String |
SCHEME_NAME |
static String |
TRIDENT_VALUE_SERIALIZED_FIELD |
static String |
VALUE_SERIALIZED_FIELD |
| Constructor and Description |
|---|
MongoDataSourcesProvider() |
| 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 static final String SCHEME_NAME
public static final String VALUE_SERIALIZED_FIELD
public static final String TRIDENT_VALUE_SERIALIZED_FIELD
public static final String DEFAULT_VALUE_SERIALIZED_FIELD
public static final String COLLECTION_NAME
public String scheme()
DataSourcesProviderscheme in interface DataSourcesProviderpublic ISqlStreamsDataSource constructStreams(URI uri, String inputFormatClass, String outputFormatClass, Properties properties, List<FieldInfo> fields)
DataSourcesProviderconstructStreams 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 © 2023 The Apache Software Foundation. All rights reserved.