Package org.voltdb.types

Examples of org.voltdb.types.IndexType


            if (const_type == ConstraintType.FOREIGN_KEY && include_fkeys == false) continue;

            // Primary Keys / Unique Constraints
            if (const_type == ConstraintType.PRIMARY_KEY || const_type == ConstraintType.UNIQUE) {
                Index catalog_idx = catalog_const.getIndex();
                IndexType idx_type = IndexType.get(catalog_idx.getType());
                String idx_suffix = idx_type.getSQLSuffix();

                ret += add + spacer +
                       (!idx_suffix.isEmpty() ? "CONSTRAINT " + catalog_const.getTypeName() + " " : "") +
                       (const_type == ConstraintType.PRIMARY_KEY ? "PRIMARY KEY" : "UNIQUE") + " (";
View Full Code Here


            if (virtual_idx == null) {
                virtual_idx = virtual_tbl.getIndexes().add(idxName);
            }
            virtual_idx.getColumns().clear();
           
            IndexType idxType = (indexColumns.size() == 1 ? IndexType.HASH_TABLE : IndexType.BALANCED_TREE);
            virtual_idx.setType(idxType.getValue());
            i = 0;
            for (Column catalog_col : indexColumns) {
                ColumnRef cref = virtual_idx.getColumns().add(catalog_col.getTypeName());
                cref.setColumn(catalog_col);
                cref.setIndex(i++);
View Full Code Here

            idx_total += t.getIndexes().size();
            for (Index i : t.getIndexes()) {
                if (i.getUnique()) {
                    idx_unique++;
                }
                IndexType idx_type = IndexType.get(i.getType());
                idx_types.put(idx_type);
            } // FOR
           
        } // FOR
       
        // ----------------------
        // TABLE INFO
        // ----------------------
        m[++idx] = new LinkedHashMap<String, Integer>();
        m[idx].put("Tables", tables);
        m[idx].put("Replicated Tables", CatalogUtil.getReplicatedTables(catalog_db).size());
        m[idx].put("Views", CatalogUtil.getViewTables(catalog_db).size());
        m[idx].put("Vertical Partition Replicas", CatalogUtil.getVerticallyPartitionedTables(catalog_db).size());
        m[idx].put("Evictable Tables", CatalogUtil.getEvictableTables(catalog_db).size());
        m[idx].put("System Tables", CatalogUtil.getSysTables(catalog_db).size());
       
        // ----------------------
        // INDEX INFO
        // ----------------------
        m[++idx] = new LinkedHashMap<String, Integer>();
        m[idx].put("Indexes", idx_total);
        m[idx].put("Unique Indexes", idx_unique);
        for (IndexType idx_type : idx_types.values()) {
            m[idx].put(String.format(" + %s Indexes", idx_type.name()),
                       (int)idx_types.get(idx_type, 0));
        } // FOR
       
        // ----------------------
        // COLUMN INFO
View Full Code Here

TOP

Related Classes of org.voltdb.types.IndexType

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.