Examples of makeKeyspaceDefinition()


Examples of com.netflix.astyanax.Cluster.makeKeyspaceDefinition()

        KeyspaceDefinition keyspace = cluster.describeKeyspace(ks);
        if(keyspace != null){
            LOG.warn("Keyspace {} already exists.", ks);
        } else{
            LOG.warn("Creating keyspace '{}'", ks);
            KeyspaceDefinition ksDef = cluster.makeKeyspaceDefinition();
            Map<String, String> stratOptions = new HashMap<String, String>();
            stratOptions.put("replication_factor", "1");
            ksDef.setName(ks)
                    .setStrategyClass("SimpleStrategy")
                    .setStrategyOptions(stratOptions);
View Full Code Here

Examples of com.netflix.astyanax.Cluster.makeKeyspaceDefinition()

        Cluster cluster = ctx.getEntity();
        Keyspace keyspace = cluster.getKeyspace(ks);
        if(keyspace != null){
            LOG.warn("Keyspace {} already exists.", ks);
        }
        KeyspaceDefinition ksDef = cluster.makeKeyspaceDefinition();

        Map<String, String> stratOptions = new HashMap<String, String>();
        stratOptions.put("replication_factor", "1");
        ksDef.setName(ks)
                .setStrategyClass("SimpleStrategy")
View Full Code Here

Examples of com.netflix.astyanax.Cluster.makeKeyspaceDefinition()

            stratOptions.put("replication_factor", "3");

            try {
                LOG.info("Creating keyspace: " + TEST_KEYSPACE_NAME);

                KeyspaceDefinition ksDef = cluster.makeKeyspaceDefinition();

                ksDef.setName(TEST_KEYSPACE_NAME)
                        .setStrategyOptions(stratOptions)
                        .setStrategyClass("SimpleStrategy")
                        .addColumnFamily(
View Full Code Here

Examples of com.netflix.astyanax.Cluster.makeKeyspaceDefinition()

            stratOptions.put("replication_factor", "3");

            try {
                LOG.info("Creating keyspace: " + TEST_KEYSPACE_NAME);

                KeyspaceDefinition ksDef = cluster.makeKeyspaceDefinition();

                ksDef.setName(TEST_KEYSPACE_NAME)
                        .setStrategyOptions(stratOptions)
                        .setStrategyClass("SimpleStrategy")
                        .addColumnFamily(
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.