Package org.kiji.schema

Examples of org.kiji.schema.KijiCell


    final KijiDataRequest dataRequest = KijiDataRequest.create("family", "column");

    // Sanity check that the write succeeded.
    KijiRowData rowData = mReader.get(mEntityId, dataRequest);
    KijiCell cell = rowData.getMostRecentCell("family", "column");
    assertNotNull(cell);
    assertEquals(cell.getData().toString(), "latest");

    // Let's just check that the timestamp is within 5 minutes of the system time.
    Long storedTimestamp = cell.getTimestamp();

    Long currentTime = System.currentTimeMillis();

    assertTrue(currentTime > storedTimestamp);
    assertTrue(currentTime - storedTimestamp < TimeUnit.MINUTES.toMillis(5));
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiCell

Copyright © 2018 www.massapicom. 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.