Examples of removeIndex()


Examples of org.apache.ddlutils.model.Table.removeIndex()

    public void apply(Database database, boolean caseSensitive)
    {
        Table table = database.findTable(getChangedTable().getName(), caseSensitive);
        Index index = table.findIndex(_index.getName(), caseSensitive);

        table.removeIndex(index);
    }
}
View Full Code Here

Examples of org.apache.ddlutils.model.Table.removeIndex()

                {
                    String indexName = table.getName() + "_" + column.getName() + "_key";
   
                    if (uniquesByName.containsKey(indexName))
                    {
                        table.removeIndex((Index)uniquesByName.get(indexName));
                        uniquesByName.remove(indexName);
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.HTableDescriptor.removeIndex()

   */
  public void removeIndex(byte[] baseTableName, String indexId) throws IOException {
    super.disableTable(baseTableName);
    HTableDescriptor desc = super.getTableDescriptor(baseTableName);
    IndexSpecification spec = desc.getIndex(indexId);
    desc.removeIndex(indexId);
    this.disableTable(spec.getIndexedTableName(baseTableName));
    this.deleteTable(spec.getIndexedTableName(baseTableName));
    super.modifyTable(baseTableName, desc);
    super.enableTable(baseTableName);
  }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.tableindexed.IndexedTableAdmin.removeIndex()

    public void dropIndexForTable(final String tableName, final String indexName) throws HBqlException {
        this.validateIndexExistsForTable(indexName, tableName);
        try {
            final IndexedTableAdmin ita = this.getIndexTableAdmin();
            ita.removeIndex(tableName.getBytes(), indexName);
        }
        catch (IOException e) {
            throw new HBqlException(e);
        }
    }
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

            if (exist == null)
                return null;
            if (!adapt)
                throw new MetaDataException(_loc.get(prefix + "-index-exists",
                    context));
            table.removeIndex(exist);
            return null;
        }

        // if we have an existing index, merge given info into it
        if (exist != null) {
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

            if (exist == null)
                return null;
            if (!adapt)
                throw new MetaDataException(_loc.get(prefix + "-index-exists",
                    context));
            table.removeIndex(exist);
            return null;
        }

        // if we have an existing index, merge given info into it
        if (exist != null) {
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

            if (exist == null)
                return null;
            if (!adapt)
                throw new MetaDataException(_loc.get(prefix + "-index-exists",
                    context));
            table.removeIndex(exist);
            return null;
        }

        // if we have an existing index, merge given info into it
        if (exist != null) {
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

        Index[] idxs = table.getIndexes();
        assertEquals(1, idxs.length);
        assertEquals(idx, idxs[0]);

        assertEquals(idx, table.getIndex("idx"));
        assertTrue(table.removeIndex(idx));
        assertTrue(!table.isNameTaken("idx"));
        assertNull(table.getIndex("idx"));
    }

    /**
 
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

            if (exist == null)
                return null;
            if (!adapt)
                throw new MetaDataException(_loc.get(prefix + "-index-exists",
                    context));
            table.removeIndex(exist);
            return null;
        }

        // if we have an existing index, merge given info into it
        if (exist != null) {
View Full Code Here

Examples of org.apache.openjpa.jdbc.schema.Table.removeIndex()

        Index[] idxs = table.getIndexes();
        assertEquals(1, idxs.length);
        assertEquals(idx, idxs[0]);

        assertEquals(idx, table.getIndex("idx"));
        assertTrue(table.removeIndex(idx));
        assertTrue(!table.isNameTaken("idx"));
        assertNull(table.getIndex("idx"));
    }

    /**
 
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.