Class SchemaProviderFactory
java.lang.Object
org.apache.drill.exec.record.metadata.schema.SchemaProviderFactory
Factory class responsible for creating different instances of schema provider based on given parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaProvider
Creates schema provider based table function schema parameter.static SchemaProvider
create
(SqlSchema sqlSchema, SchemaHandler schemaHandler) Creates schema provider for sql schema commands.
-
Constructor Details
-
SchemaProviderFactory
public SchemaProviderFactory()
-
-
Method Details
-
create
public static SchemaProvider create(SqlSchema sqlSchema, SchemaHandler schemaHandler) throws IOException Creates schema provider for sql schema commands.- Parameters:
sqlSchema
- sql schema callschemaHandler
- schema handler- Returns:
- schema provider instance
- Throws:
IOException
- if unable to init schema provider
-
create
Creates schema provider based table function schema parameter.- Parameters:
parameterValue
- schema parameter value- Returns:
- schema provider instance
- Throws:
IOException
- if unable to init schema provider
-