Package org.kiji.schema.KijiDataRequestBuilder

Examples of org.kiji.schema.KijiDataRequestBuilder.ColumnsDef


  public KijiRowData next(final int pageSize) {
    if (!hasNext()) {
      throw new NoSuchElementException("Kiji pager is exhausted.");
    }
    final KijiColumnName column = mColumnRequest.getColumnName();
    final ColumnsDef columnDef = ColumnsDef
        .create()
        .withFilter(mColumnRequest.getFilter())
        .withPageSize(KijiDataRequest.PAGING_DISABLED)
        .withMaxVersions(mColumnRequest.getMaxVersions())
        .add(column, mColumnRequest.getReaderSpec());
View Full Code Here


    assertEquals("details", usersDetailsCol.getQualifier());
  }

  @Test
  public void testNoColumnsDefReuse() {
    final ColumnsDef cols = ColumnsDef.create().withMaxVersions(10).addFamily("info");
    KijiDataRequest.builder().addColumns(cols).build()// seals cols
    try {
      KijiDataRequest.builder().addColumns(cols).build()// fails as cols is already sealed.
      fail("An exception should have been thrown.");
    } catch (IllegalStateException ise) {
View Full Code Here

      final Column familyRequest =
          dataRequest.getRequestForColumn(KijiColumnName.create(column.getFamily(), null));
      if (familyRequest == null) {
        return ImmutableList.of();
      }
      ColumnsDef columnDef = ColumnsDef
          .create()
          .withFilter(familyRequest.getFilter())
          .withPageSize(familyRequest.getPageSize())
          .withMaxVersions(familyRequest.getMaxVersions())
          .add(column.getFamily(), column.getQualifier(), familyRequest.getReaderSpec());
View Full Code Here

  public KijiRowData next(final int pageSize) {
    if (!hasNext()) {
      throw new NoSuchElementException("Kiji qualifier pager is exhausted.");
    }
    final KijiColumnName column = mColumnRequest.getColumnName();
    final ColumnsDef columnDef = ColumnsDef
        .create()
        .withFilter(mColumnRequest.getFilter())
        .withPageSize(KijiDataRequest.PAGING_DISABLED)
        .withMaxVersions(mColumnRequest.getMaxVersions())
        .add(column, mColumnRequest.getReaderSpec());
View Full Code Here

TOP

Related Classes of org.kiji.schema.KijiDataRequestBuilder.ColumnsDef

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.