Package org.kiji.schema

Examples of org.kiji.schema.KijiRowData


      final EntityId eid
  ) throws IOException {
    final KijiDataRequest pagedRequest = KijiDataRequest.builder().addColumns(
        ColumnsDef.create().withPageSize(10).withMaxVersions(10000).add("map", null)).build();
    {
      final KijiRowData warmupRowData = reader.get(eid, pagedRequest);
      for (KijiCell<Integer> cell : warmupRowData.<Integer>asIterable("map")) {
        cell.getData();
      }
      final KijiResult<Object> warmupResult = reader.getResult(eid, pagedRequest);
      try {
        for (KijiCell<Object> cell : warmupResult) {
View Full Code Here


                .add("family", "qual1"))
            .addColumns(ColumnsDef.create()
                .withMaxVersions(3)
                .add("family", "qual2"))
            .build();
        final KijiRowData row = reader.get(table.getEntityId("row0"), dataRequest);
        assertEquals(1, row.getValues("family", "qual0").size());
        assertEquals(2, row.getValues("family", "qual1").size());
        assertEquals(3, row.getValues("family", "qual2").size());
      } finally {
        reader.close();
      }
    } finally {
      table.release();
View Full Code Here

      try {
        final KijiDataRequest dataRequest = KijiDataRequest.builder()
            .addColumns(ColumnsDef.create()
                .addFamily("family"))
            .build();
        final KijiRowData row = reader.get(table.getEntityId("row0"), dataRequest);
        assertEquals(1, row.getValues("family", "qual0").size());
        assertEquals(1, row.getValues("family", "qual1").size());
      } finally {
        reader.close();
      }
    } finally {
      table.release();
View Full Code Here

        final KijiDataRequest dataRequest = KijiDataRequest.builder()
            .addColumns(ColumnsDef.create().withMaxVersions(100).add("family", "column"))
            .build();

        // Try this as a get.
        final KijiRowData rowData = reader.get(table.getEntityId("row1"), dataRequest);
        String s = rowData.getValue("family", "column", 0L).toString();
        assertEquals(s, "Value at timestamp 0.");

        // Try this as a scan.
        int rowCounter = 0;
        final KijiRowScanner rowScanner = reader.getScanner(dataRequest);
View Full Code Here

    assertEquals(MR_BONKERS, mReader.get(mEntityId, request).getValue(INFO, NAME, 5L).toString());

    mPutter.commit();

    KijiRowData rowData = mReader.get(mEntityId, request);
    assertEquals(BIRDHEAD, rowData.getValue(INFO, NAME, 0L).toString());
    assertEquals(MR_BONKERS, rowData.getValue(INFO, NAME, 5L).toString());
    assertEquals(AMINO_MAN, rowData.getValue(INFO, NAME, 10L).toString());
  }
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiRowData

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.