Examples of makeIndexValues()


Examples of com.pardot.rhombus.cobject.CDefinition.makeIndexValues()

    //manually record those incorrect values in the update table
    CQLStatement cql = om.getCqlGenerator_ONLY_FOR_TESTING().makeInsertUpdateIndexStatement(
        keyspace,
        def1,
        key, def1.makeIndexValues(testObject));
    om.getCqlExecutor().executeSync(cql);

    //now manually record an update back to the original in the update table to simulate an eventual consistency issue
    Map<String, Object> testObjectOriginal = Maps.newTreeMap();
    testObjectOriginal.put("foreignid", Long.valueOf(100));
View Full Code Here

Examples of com.pardot.rhombus.cobject.CDefinition.makeIndexValues()

    testObjectOriginal.put("data2", "This is data 2");
    testObjectOriginal.put("data3", "This is data 3");
    cql = om.getCqlGenerator_ONLY_FOR_TESTING().makeInsertUpdateIndexStatement(
        definition.getName(),
        def1,
        key, def1.makeIndexValues(testObjectOriginal));
    om.getCqlExecutor().executeSync(cql);

    //verify that the object returns different values in the static table and on those (or some of those) indexes
    Map<String, Object> staticTableObject = om.getByKey("testtype", key);
    assertEquals(100L,staticTableObject.get("foreignid"));
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.