public interface StreamSourceProvider
Source
for a specific format or system.
Modifier and Type | Method and Description |
---|---|
org.apache.spark.sql.execution.streaming.Source |
createSource(SQLContext sqlContext,
String metadataPath,
scala.Option<StructType> schema,
String providerName,
scala.collection.immutable.Map<String,String> parameters) |
scala.Tuple2<String,StructType> |
sourceSchema(SQLContext sqlContext,
scala.Option<StructType> schema,
String providerName,
scala.collection.immutable.Map<String,String> parameters)
Returns the name and schema of the source that can be used to continually read data.
|
scala.Tuple2<String,StructType> sourceSchema(SQLContext sqlContext, scala.Option<StructType> schema, String providerName, scala.collection.immutable.Map<String,String> parameters)
sqlContext
- (undocumented)schema
- (undocumented)providerName
- (undocumented)parameters
- (undocumented)org.apache.spark.sql.execution.streaming.Source createSource(SQLContext sqlContext, String metadataPath, scala.Option<StructType> schema, String providerName, scala.collection.immutable.Map<String,String> parameters)
sqlContext
- (undocumented)metadataPath
- (undocumented)schema
- (undocumented)providerName
- (undocumented)parameters
- (undocumented)