Examples of truncateTables()


Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

        cm.buildKeyspace(keyspaceDefinition, true);
        logger.debug("Built keyspace: {}", keyspaceDefinition.getName());
        cm.setDefaultKeyspace(keyspaceDefinition);
        ObjectMapper om = cm.getObjectMapper();
        om.setLogCql(true);
        om.truncateTables();

        // This is the only static table definition this test keyspace has
        List<String> staticTableNames = Arrays.asList(testUniqueTableName);

        //Insert our test data into the SSTable
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

        cm.buildKeyspace(keyspaceDefinition, true);
        logger.debug("Built keyspace: {}", keyspaceDefinition.getName());
        cm.setDefaultKeyspace(keyspaceDefinition);
        ObjectMapper om = cm.getObjectMapper();
        om.setLogCql(true);
        om.truncateTables();

        // This is the only static table definition this test keyspace has
        List<String> staticTableNames = Arrays.asList(testUniqueTableName);

        //Insert our test data into the SSTable
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

        cm.buildKeyspace(keyspaceDefinition, true);
        logger.debug("Built keyspace: {}", keyspaceDefinition.getName());
        cm.setDefaultKeyspace(keyspaceDefinition);
        ObjectMapper om = cm.getObjectMapper();
        om.setLogCql(true);
        om.truncateTables();

        // This is the only static table definition this test keyspace has
        List<String> staticTableNames = Arrays.asList(testUniqueTableName);

        //Insert our test data into the SSTable
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

        cm.buildKeyspace(keyspaceDefinition, true);
        logger.debug("Built keyspace: {}", keyspaceDefinition.getName());
        cm.setDefaultKeyspace(keyspaceDefinition);
        ObjectMapper om = cm.getObjectMapper();
        om.setLogCql(true);
        om.truncateTables();

        // This is the only static table definition this test keyspace has
        List<String> staticTableNames = Arrays.asList(testUniqueTableName);

        //Insert our test data into the SSTable
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(definition, true);
    cm.setDefaultKeyspace(definition);
    ObjectMapper om = cm.getObjectMapper();
    om.truncateTables();

    CDefinition def1 = om.getKeyspaceDefinition_ONLY_FOR_TESTING().getDefinitions().get("testtype");
    //do an insert on an object
    Map<String, Object> testObject = Maps.newTreeMap();
    testObject.put("foreignid", Long.valueOf(100));
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(definition, true);
    cm.setDefaultKeyspace(definition);
    ObjectMapper om = cm.getObjectMapper();
    om.truncateTables();

    //do an insert on an object
    Map<String, Object> testObject = Maps.newTreeMap();
    testObject.put("foreignid", Long.valueOf(100));
    testObject.put("type", Integer.valueOf(101));
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(definition, false);
    cm.setDefaultKeyspace(definition);
    ObjectMapper om = cm.getObjectMapper();
    om.truncateTables();

    //do an insert on an object
    Map<String, Object> testObject = Maps.newTreeMap();
    testObject.put("foreignid", Long.valueOf(100));
    testObject.put("type", Integer.valueOf(101));
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    //Rebuild the keyspace and get the object mapper
    cm.buildKeyspace(definition, true);
    cm.setDefaultKeyspace(definition);
    ObjectMapper om = cm.getObjectMapper();
    om.truncateTables();

    //do an insert on an object
    Map<String, Object> testObject = Maps.newTreeMap();
    testObject.put("foreignid", null); //null index value
    testObject.put("type", Integer.valueOf(101));
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    logger.debug("Starting testShardedQueries");

    // Get an object mapper for the keyspace and truncate the data
    ConnectionManager cm = getConnectionManager();
    ObjectMapper om = cm.getObjectMapper(keyspaceDefinition);
    om.truncateTables();
    om.setLogCql(true);

    //Set up test data
    List<Map<String, Object>> values = JsonUtil.rhombusMapFromResource(this.getClass().getClassLoader(), "ShardedTestData.js");
    for(Map<String, Object> object : values) {
View Full Code Here

Examples of com.pardot.rhombus.ObjectMapper.truncateTables()

    logger.debug("Starting testQueriesUseShardIndex");

    // Get an object mapper for the keyspace and truncate the data
    ConnectionManager cm = getConnectionManager();
    ObjectMapper om = cm.getObjectMapper(keyspaceDefinition);
    om.truncateTables();
    om.setLogCql(true);

    // Insert a record that is more than ObjectMapper.reasonableStatementLimit months old
    DateTime dateTime = DateTime.now().minusMonths(om.getReasonableStatementLimit() * 2);
    UUID id = UUIDs.startOf(dateTime.getMillis());
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.