Class SchemaProviderFactory

java.lang.Object
org.apache.drill.exec.record.metadata.schema.SchemaProviderFactory

public class SchemaProviderFactory extends Object
Factory class responsible for creating different instances of schema provider based on given parameters.
  • 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 call
      schemaHandler - schema handler
      Returns:
      schema provider instance
      Throws:
      IOException - if unable to init schema provider
    • create

      public static SchemaProvider create(String parameterValue) throws IOException
      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