Package cascading.lingual.catalog

Examples of cascading.lingual.catalog.ProviderDef


    String schemaName = getOptions().getSchemaName();
    String providerName = getOptions().getProviderName();

    if( providerName != null )
      {
      ProviderDef providerDef = catalog.findProviderFor( schemaName, providerName );

      if( providerDef == null )
        throw new IllegalArgumentException( "provider not registered to schema: " + providerName );
      }
    }
View Full Code Here


  protected Map performShow( PlatformBroker platformBroker )
    {
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    SchemaDef schemaDef = getSchemaDefChecked( catalog, getOptions().getSchemaName(), false );

    ProviderDef providerDef = schemaDef.findProviderDefFor( getOptions().getProviderName() );

    if( providerDef == null )
      return null;

    return new ProviderBuilder().format( providerDef );
View Full Code Here

      names.add( name );

      // make sure, it is actually a usable provider jar
      try
        {
        ProviderDef providerDef = new ProviderDef( catalog.getSchemaDef( options.getSchemaName() ), name, jarFile.getName(), propertyMap );
        if( providerDef.getExtends() == null )
          new ProviderProxy( platformBroker, providerDef );
        }
      catch( RuntimeException exception )
        {
        String addURI = getOptions().getAddURI();
View Full Code Here

  public static String[] getJarPaths( PlatformBroker platformBroker, TableDef tableDef )
    {
    Set<String> jars = new HashSet<String>();
    String rootPath = platformBroker.getFullProviderPath();

    ProviderDef protocolProvider = tableDef.getProtocolProvider();

    if( protocolProvider != null && protocolProvider.getIdentifier() != null )
      jars.add( platformBroker.makePath( rootPath, protocolProvider.getIdentifier() ) );

    ProviderDef formatProvider = tableDef.getFormatProvider();

    if( formatProvider != null && formatProvider.getIdentifier() != null )
      jars.add( platformBroker.makePath( rootPath, formatProvider.getIdentifier() ) );

    return jars.toArray( new String[ jars.size() ] );
    }
View Full Code Here

TOP

Related Classes of cascading.lingual.catalog.ProviderDef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.