public class RedisDataSourcesProvider extends Object implements DataSourcesProvider
Create a Redis sink based on the URI and properties. The URI has the format of redis://:[password]@[host]:[port]/[dbIdx]. Only host is mandatory and others can be set to default.
The properties are in JSON format which specifies the config of the Redis data type and etc. Please note that when “use.redis.cluster” is “true”, cluster discovery is only done from given URI.
Constructor and Description |
---|
RedisDataSourcesProvider() |
Modifier and Type | Method and Description |
---|---|
DataSource |
construct(URI uri,
String inputFormatClass,
String outputFormatClass,
List<FieldInfo> fields) |
ISqlTridentDataSource |
constructTrident(URI uri,
String inputFormatClass,
String outputFormatClass,
Properties props,
List<FieldInfo> fields) |
String |
scheme() |
public String scheme()
scheme
in interface DataSourcesProvider
public DataSource construct(URI uri, String inputFormatClass, String outputFormatClass, List<FieldInfo> fields)
construct
in interface DataSourcesProvider
public ISqlTridentDataSource constructTrident(URI uri, String inputFormatClass, String outputFormatClass, Properties props, List<FieldInfo> fields)
constructTrident
in interface DataSourcesProvider
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.