Examples of containsCell()


Examples of org.kiji.schema.KijiRowData.containsCell()

    mWriter.put(mEntityId, FAMILY, QUAL0, myTime, "foo");

    KijiRowData row1 = mReader.get(mEntityId, KijiDataRequest.create(FAMILY, QUAL0));
    assertTrue(row1.containsCell(FAMILY, QUAL0, myTime));
    assertFalse(row1.containsCell(FAMILY, QUAL0, myTime + 1L));
    assertFalse(row1.containsCell("fake", QUAL0, myTime));
    assertFalse(row1.containsCell(FAMILY, "fake", myTime));
  }

  @Test
  public void testIteratorMapFamilyTypes() throws IOException {
View Full Code Here

Examples of org.kiji.schema.KijiRowData.containsCell()

    KijiRowData row1 = mReader.get(mEntityId, KijiDataRequest.create(FAMILY, QUAL0));
    assertTrue(row1.containsCell(FAMILY, QUAL0, myTime));
    assertFalse(row1.containsCell(FAMILY, QUAL0, myTime + 1L));
    assertFalse(row1.containsCell("fake", QUAL0, myTime));
    assertFalse(row1.containsCell(FAMILY, "fake", myTime));
  }

  @Test
  public void testIteratorMapFamilyTypes() throws IOException {
    mWriter.put(mEntityId, MAP, KEY0, 1L, 0);
View Full Code Here

Examples of org.kiji.schema.KijiRowData.containsCell()

        .addColumns(ColumnsDef.create().withMaxVersions(10).add("info", "name"))
        .build();

    KijiRowData rowData;
    rowData = mReader.get(mEntityId, dataRequest);
    assertFalse(rowData.containsCell("info", "name", 0L));

    // Now do a flush.
    mBufferedWriter.flush();

    // If you read again, the data should be present.
View Full Code Here

Examples of org.kiji.schema.KijiRowData.containsCell()

          (double) (System.nanoTime() - rawHBaseStartTime) / 1000000);
    }
    {
      final long rowDataStartTime = System.nanoTime();
      final KijiRowData testRowData = reader.get(table.getEntityId("foo"), request);
      testRowData.containsCell("family", "qualifier", 1);
      LOG.info("built row data in {} milliseconds",
          (double) (System.nanoTime() - rowDataStartTime) / 1000000);
      int seen = 0;
      for (KijiCell<Integer> cell : testRowData.<Integer>asIterable("map")) {
        Object v = cell.getData();
View Full Code Here

Examples of org.kiji.schema.KijiRowData.containsCell()

  ) throws IOException {
    {
      final KijiDataRequest singletonRequest = KijiDataRequest.create("map", "10");
      final long rowDataStartTime = System.nanoTime();
      final KijiRowData testRowData = reader.get(table.getEntityId("foo"), singletonRequest);
      testRowData.containsCell("family", "qualifier", 1);
      final Integer value = testRowData.getMostRecentValue("map", "10");
      LOG.info("row data single value time = {} nanoseconds",
          (double) (System.nanoTime() - rowDataStartTime) / 1000000);

      final long resultStartTime = System.nanoTime();
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.