Examples of KijiTableReaderPool


Examples of org.kiji.schema.KijiTableReaderPool

            FAMILY_QUAL0_R
        ).getMostRecentValue("family", "qual0").toString();
      }
    }.eval());

    final KijiTableReaderPool pool = KijiTableReaderPool.Builder.create()
        .withReaderFactory(mTable.getReaderFactory())
        .build();
    try {
      Assert.assertEquals("foo-val", new WithKijiTableReader<String>(pool) {
        @Override
        public String run(final KijiTableReader kijiTableReader) throws Exception {
          return kijiTableReader.get(
              mTable.getEntityId("foo"),
              FAMILY_QUAL0_R
          ).getMostRecentValue("family", "qual0").toString();
        }
      }.eval());
    } finally {
      pool.close();
    }
  }
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.