Examples of renameTable()


Examples of com.facebook.presto.raptor.metadata.MetadataDao.renameTable()

            @Override
            protected void execute(Handle handle, TransactionStatus status)
                    throws Exception
            {
                MetadataDao dao = handle.attach(MetadataDao.class);
                dao.renameTable(table.getTableId(), newTableName.getSchemaName(), newTableName.getTableName());
            }
        });
    }

    @Override
View Full Code Here

Examples of com.facebook.presto.raptor.metadata.MetadataDao.renameTable()

            @Override
            protected void execute(Handle handle, TransactionStatus status)
                    throws Exception
            {
                MetadataDao dao = handle.attach(MetadataDao.class);
                dao.renameTable(table.getTableId(), newTableName.getSchemaName(), newTableName.getTableName());
            }
        });
    }

    @Override
View Full Code Here

Examples of com.nearinfinity.honeycomb.Store.renameTable()

        Verify.isNotNullOrEmpty(originalName, "Original table name must have value.");
        Verify.isNotNullOrEmpty(newName, "New table name must have value.");
        checkArgument(!originalName.equals(newName), "New table name must be different than original.");

        Store store = storeFactory.createStore(originalName);
        store.renameTable(originalName, newName);
        tableName = newName;
    }

    public long getRowCount() {
        checkTableOpen();
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          if (!tableName.equals(tableNameFromMapping)) {
            LOG.info("Keyclass and nameclass match but mismatching table names "
                + " mappingfile schema is '" + tableNameFromMapping
                + "' vs actual schema '" + tableName + "' , assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          //TODO this might not be the desired behavior as the user might have actually made a mistake.
            LOG.warn("Mismatching schema's names. Mappingfile schema: '" + tableNameFromMapping
                + "'. PersistentClass schema's name: '" + tableName + "'"
                + "Assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          if (!tableName.equals(tableNameFromMapping)) {
            LOG.info("Keyclass and nameclass match but mismatching table names "
                + " mappingfile schema is '" + tableNameFromMapping
                + "' vs actual schema '" + tableName + "' , assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          //TODO this might not be the desired behavior as the user might have actually made a mistake.
            LOG.warn("Mismatching schema's names. Mappingfile schema: '" + tableNameFromMapping
                + "'. PersistentClass schema's name: '" + tableName + "'"
                + "Assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          //TODO this might not be the desired behavior as the user might have actually made a mistake.
            LOG.warn("Mismatching schema's names. Mappingfile schema: '" + tableNameFromMapping
                + "'. PersistentClass schema's name: '" + tableName + "'"
                + "Assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
View Full Code Here

Examples of org.apache.gora.hbase.store.HBaseMapping.HBaseMappingBuilder.renameTable()

          if (!tableName.equals(tableNameFromMapping)) {
            log.info("Keyclass and nameclass match but mismatching table names "
                + " mappingfile schema is '" + tableNameFromMapping
                + "' vs actual schema '" + tableName + "' , assuming they are the same.");
            if (tableNameFromMapping != null) {
              mappingBuilder.renameTable(tableNameFromMapping, tableName);
            }
          }
          mappingBuilder.setTableName(tableName);

          List<Element> fields = classElement.getChildren("field");
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.