Examples of SchemaDef


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

Examples of cascading.lingual.catalog.SchemaDef

    }

  @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

Examples of cascading.lingual.catalog.SchemaDef



  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
Copyright © 2018 www.massapi.com. 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.