Examples of dropColumnFamily()


Examples of com.hmsonline.virgil.CassandraStorage.dropColumnFamily()

        dataService.deleteRow(KEYSPACE, COLUMN_FAMILY, "TEST_SLICE", ConsistencyLevel.ONE, false);
        json = dataService.getSlice(KEYSPACE, COLUMN_FAMILY, "TEST_SLICE", ConsistencyLevel.ONE);
        assertEquals(null, json);

        // DROP COLUMN FAMILY
        dataService.dropColumnFamily(KEYSPACE, COLUMN_FAMILY);
        boolean threw = false;
        try {
            json = dataService.getSlice(KEYSPACE, COLUMN_FAMILY, "TEST_SLICE", ConsistencyLevel.ONE);
        } catch (InvalidRequestException ire) {
            threw = true;
View Full Code Here

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

        }
       
        if (dropFirst){
            LOG.warn("Dropping {} column family.", cf);
            try{
          cluster.dropColumnFamily(ks,cf);
            } catch (BadRequestException bre){
              LOG.warn("Could not drop column family, likely doesn't exist. [" + bre.getMessage() + "]");
            }
        }
       
View Full Code Here

Examples of me.prettyprint.hector.api.Cluster.dropColumnFamily()

        validateKeyspace(keyspaceName);
        validateCF(columnFamilyName);
        try {
            Cluster cluster = getCluster(null);
            cluster.dropColumnFamily(keyspaceName.trim(), columnFamilyName.trim());
        } catch (HectorException e) {
            throw new CassandraServerManagementException("Error removing a column family with the name :" +
                    columnFamilyName, e, log);
        }
        return true;
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.