Package cascading.lingual.catalog

Examples of cascading.lingual.catalog.SchemaDef


    }

  @Override
  public boolean removeProtocol( String schemaName, Protocol protocol )
    {
    SchemaDef schemaDef = getSchemaDefChecked( schemaName );

    schemaDef.removeProtocolProperties( protocol );

    return true;
    }
View Full Code Here


    }

  @Override
  public boolean renameProtocol( String schemaName, Protocol oldProtocol, Protocol newProtocol )
    {
    SchemaDef schemaDef = getSchemaDefChecked( schemaName );

    Map<String, List<String>> oldProperties = schemaDef.removeProtocolProperties( oldProtocol );
    schemaDef.addProtocolProperties( newProtocol, oldProperties );

    return true;
    }
View Full Code Here



  private Resource<Protocol, Format, SinkMode> createResultResource( PlatformBroker platformBroker, LingualFlowFactory flowFactory )
    {
    SchemaDef schemaDef = platformBroker.getResultSchemaDef();
    Protocol protocol = schemaDef.findDefaultProtocol();
    Format format = schemaDef.findDefaultFormat();

    String resultPath;

    if( schemaDef.isRoot() )
      resultPath = platformBroker.getResultPath( flowFactory.getName() );
    else
      resultPath = platformBroker.makePath( schemaDef.getIdentifier(), flowFactory.getName() );

    String extension = FormatProperties.findExtensionFor( schemaDef, format );

    if( extension != null )
      resultPath += extension;
View Full Code Here

TOP

Related Classes of cascading.lingual.catalog.SchemaDef

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.