Package org.apache.tajo.catalog.exception

Examples of org.apache.tajo.catalog.exception.AlreadyExistsFieldException


  public synchronized Schema addColumn(String name, DataType dataType) {
    String normalized = name;
    if(fieldsByQualifiedName.containsKey(normalized)) {
      LOG.error("Already exists column " + normalized);
      throw new AlreadyExistsFieldException(normalized);
    }
     
    Column newCol = new Column(normalized, dataType);
    fields.add(newCol);
    fieldsByQualifiedName.put(newCol.getQualifiedName(), fields.size() - 1);
View Full Code Here


  public synchronized Schema addColumn(String name, DataType dataType) {
    String normalized = name.toLowerCase();
    if(fieldsByQialifiedName.containsKey(normalized)) {
      LOG.error("Already exists column " + normalized);
      throw new AlreadyExistsFieldException(normalized);
    }
     
    Column newCol = new Column(normalized, dataType);
    fields.add(newCol);
    fieldsByQialifiedName.put(newCol.getQualifiedName(), fields.size() - 1);
View Full Code Here

TOP

Related Classes of org.apache.tajo.catalog.exception.AlreadyExistsFieldException

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.