Package org.apache.tajo.catalog.proto.CatalogProtos.AlterTablespaceProto

Examples of org.apache.tajo.catalog.proto.CatalogProtos.AlterTablespaceProto.AlterTablespaceCommand


  public void alterTablespace(AlterTablespaceProto alterProto) throws CatalogException {
    Connection conn;
    PreparedStatement pstmt = null;

    if (alterProto.getCommandList().size() == 1) {
      AlterTablespaceCommand command = alterProto.getCommand(0);
      if (command.getType() == AlterTablespaceProto.AlterTablespaceType.LOCATION) {
        AlterTablespaceProto.SetLocation setLocation = command.getLocation();
        try {
          String sql = "UPDATE " + TB_SPACES + " SET SPACE_URI=? WHERE SPACE_NAME=?";

          conn = getConnection();
          pstmt = conn.prepareStatement(sql);
View Full Code Here

TOP

Related Classes of org.apache.tajo.catalog.proto.CatalogProtos.AlterTablespaceProto.AlterTablespaceCommand

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.