Package cascading.lingual.catalog

Examples of cascading.lingual.catalog.Format


  @Override
  protected boolean performRename( PlatformBroker platformBroker )
    {
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    String schemaName = getOptions().getSchemaName();
    Format oldFormat = getSource( platformBroker );
    Format newFormat = Format.getFormat( getOptions().getRenameName() );

    if( oldFormat == null )
      return false;

    return catalog.renameFormat( schemaName, oldFormat, newFormat );
View Full Code Here


  @Override
  protected boolean performRemove( PlatformBroker platformBroker )
    {
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    String schemaName = getOptions().getSchemaName();
    Format format = getSource( platformBroker );

    return catalog.removeFormat( schemaName, format );
    }
View Full Code Here

    SchemaCatalog catalog = platformBroker.getSchemeCatalog();

    if( getRequestedSourceName() == null )
      return null;

    Format format = Format.getFormat( getRequestedSourceName() );

    if( !catalog.getSchemaDefinedFormats( getOptions().getSchemaName() ).contains( format ) )
      return null;

    return format;
View Full Code Here

    String formatName = getOptions().getFormatName();

    if( formatName == null )
      throw new IllegalArgumentException( "update action must have a format name value" );

    Format format = getSource( platformBroker );

    if( format == null )
      return emptyList();

    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
View Full Code Here

  @Override
  protected List<String> performAdd( PlatformBroker platformBroker )
    {
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    Format format = Format.getFormat( getOptions().getFormatName() );
    String schemaName = getOptions().getSchemaName();
    Map<String, String> properties = getOptions().getProperties();
    List<String> extensions = getOptions().getExtensions();
    String providerName = getOptions().getProviderName();

    catalog.addUpdateFormat( schemaName, format, extensions, properties, providerName );

    return asList( format.getName() );
    }
View Full Code Here

    }

  @Override
  protected Map performShow( PlatformBroker platformBroker )
    {
    Format format = Format.getFormat( getRequestedSourceName() );
    SchemaCatalog catalog = platformBroker.getSchemeCatalog();
    SchemaDef schemaDef = getSchemaDefChecked( catalog, getOptions().getSchemaName(), true );

    if( !schemaDef.getAllFormats().contains( format ) )
      return null;
View Full Code Here

    Protocol protocol = Protocol.getProtocol( getOptions().getProtocolName() );

    if( protocol != null )
      tableDef.setProtocol( protocol );

    Format format = Format.getFormat( getOptions().getFormatName() );

    if( format != null )
      tableDef.setFormat( format );

    return asList( tableName );
View Full Code Here

    {
    String schemaName = getOptions().getSchemaName();
    String tableName = getOptions().getTableName();
    String addURI = getOptions().getAddOrUpdateURI();
    Protocol protocol = Protocol.getProtocol( getOptions().getProtocolName() );
    Format format = Format.getFormat( getOptions().getFormatName() );

    String stereotypeName = getOptions().getStereotypeName();

    SchemaCatalogManager catalogManager = platformBroker.getCatalogManager();
View Full Code Here

    // return declared format by given table
    if( tableDef != null && tableDef.getFormat() != null )
      return tableDef.getActualFormat();

    Format format = FormatProperties.findFormatFor( schemaDef, identifier );

    if( format == null )
      format = schemaDef.findDefaultFormat();

    return format;
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() );
View Full Code Here

TOP

Related Classes of cascading.lingual.catalog.Format

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.