Examples of keyAliases()


Examples of org.apache.cassandra.config.CFMetaData.keyAliases()

                   .bloomFilterFpChance(getPropertyDouble(CFPropDefs.KW_BF_FP_CHANCE, null))
                   .populateIoCacheOnFlush(getPropertyBoolean(CFPropDefs.KW_POPULATE_IO_CACHE_ON_FLUSH, CFMetaData.DEFAULT_POPULATE_IO_CACHE_ON_FLUSH));

            // CQL2 can have null keyAliases
            if (keyAlias != null)
                newCFMD.keyAliases(Collections.<ByteBuffer>singletonList(keyAlias));
        }
        catch (ConfigurationException e)
        {
            throw new InvalidRequestException(e.toString());
        }
View Full Code Here

Examples of org.apache.cassandra.config.CFMetaData.keyAliases()

            /*
             * CASSANDRA-6831: Because thrift updates don't know about aliases,
             * we should copy them from the original CFM
             */
            if (!cf_def.isSetKey_alias())
                cfm.keyAliases(oldCfm.getKeyAliases());
            cfm.columnAliases(oldCfm.getColumnAliases());
            cfm.valueAlias(oldCfm.getValueAlias());

            CFMetaData.validateCompactionOptions(cfm.compactionStrategyClass, cfm.compactionStrategyOptions, false);
            cfm.addDefaultIndexNames();
View Full Code Here

Examples of org.apache.cassandra.config.CFMetaData.keyAliases()

                        throw new InvalidRequestException(String.format("Cannot rename column %s in table %s to %s; another column of that name already exist", from, columnFamily(), to));

                    switch (from.kind)
                    {
                        case KEY_ALIAS:
                            cfm.keyAliases(rename(from.position, to, cfm.getKeyAliases()));
                            break;
                        case COLUMN_ALIAS:
                            cfm.columnAliases(rename(from.position, to, cfm.getColumnAliases()));
                            break;
                        case VALUE_ALIAS:
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.