Examples of hydrateLatestKeyspaceDefinitionFromCassandra()


Examples of com.pardot.rhombus.ConnectionManager.hydrateLatestKeyspaceDefinitionFromCassandra()

    //Build the same keyspace but do not force a rebuild
    cm.buildKeyspace(definition, false);

    //verify that we saved the keyspace definition in cassandra correctly
    CKeyspaceDefinition queriedDef = cm.hydrateLatestKeyspaceDefinitionFromCassandra(definition.getName());
    assertEquals(definition.getDefinitions().size(), queriedDef.getDefinitions().size());
    assertEquals(queriedDef.getDefinitions().get("testtype").getField("foreignid").getType(), CField.CDataType.BIGINT);

    cm.teardown();
  }
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.hydrateLatestKeyspaceDefinitionFromCassandra()

    //run the migration grabbing a brand new object mapper
    cm = getConnectionManager();
    om = cm.getObjectMapper(NewKeyspaceDefinition);

    //make sure that our keyspace definitions do not match
    assertNotEquals(NewKeyspaceDefinition, cm.hydrateLatestKeyspaceDefinitionFromCassandra(NewKeyspaceDefinition.getName()));
    assertNotEquals(NewKeyspaceDefinition, om.getKeyspaceDefinition_ONLY_FOR_TESTING());

    //run the migration
    cm.runMigration(NewKeyspaceDefinition, true);
View Full Code Here

Examples of com.pardot.rhombus.ConnectionManager.hydrateLatestKeyspaceDefinitionFromCassandra()

    //make sure that the object mapper has the new keyspace definition
    CKeyspaceDefinition updatedKeyspaceDefinition = om.getKeyspaceDefinition_ONLY_FOR_TESTING();
    assertEquals(NewKeyspaceDefinition, updatedKeyspaceDefinition);

    //make sure that the new keyspace definition has been stored in the rhombus metadata store
    CKeyspaceDefinition updatedRhombusDefinition = cm.hydrateLatestKeyspaceDefinitionFromCassandra(NewKeyspaceDefinition.getName());
    assertEquals(NewKeyspaceDefinition, updatedRhombusDefinition);

    //now query out some data grabbing a brand new object mapper
    cm = getConnectionManager();
    om = cm.getObjectMapper(NewKeyspaceDefinition.getName());
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.