Examples of limit()


Examples of br.com.objectos.way.relational.Page.limit()

    return PageList.of(filtered);
  }

  public PageList<T> page(RequestWrapper wrapper) {
    Page page = wrapper.getPage();
    List<T> limit = page.limit(rows);
    Pager nextPager = pager.to(page);
    return new PageList<T>(limit, nextPager);
  }

  public PageList<T> sort(Comparator<? super T> comparator) {
View Full Code Here

Examples of com.caucho.jdbc.JdbcMetaData.limit()

      JdbcMetaData metaData = _aConn.getAmberManager().getMetaData();

      // XXX: should limit meta-data as well?
      // jps/1431
      if (metaData.isLimitOffset()) {
        sql = metaData.limit(sql, firstResults, maxResults);
        row = firstResults;
      }
      else
        sql = metaData.limit(sql, 0, firstResults + maxResults);
    }
View Full Code Here

Examples of com.datastax.driver.core.querybuilder.Select.limit()

                            }
                            where.and(endInclusive ? lte(names, values) : lt(names, values));
                        }
                    }

                    select = select.limit(bindMarker());

                    if (kind == Kind.REVERSED_SLICE)
                        select = select.orderBy(desc(mapper.clusteringColumns.get(0).getColumnName()));

                    return select.toString();
View Full Code Here

Examples of com.datastax.driver.core.querybuilder.Select.Where.limit()

            Select selectQuery = QueryBuilder.select().all().from(keySpace, indTable).allowFiltering();
            Where whereClause = Cql3Util.createRowQuery(from, to, columnMeta, selectQuery, rowKeyString, indTable);
            Query query = null;

            if (batchSize != null)
                query = whereClause.limit(batchSize);
            else
                query = whereClause.disableTracing();
            resultSet = session.execute(query);

            // Need to see where we use this batchListener
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Input.limit()

    write.writeInt(400, true);

    read = new Input(write.toBytes());
    assertEquals(true, read.canReadInt());
    read.setLimit(read.limit() - 1);
    assertEquals(false, read.canReadInt());
  }

  public void testInts () throws IOException {
    runIntTest(new Output(4096));
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeInput.limit()

    write.writeVarInt(400, true);

    read = new UnsafeInput(write.toBytes());
    assertEquals(true, read.canReadInt());
    read.setLimit(read.limit() - 1);
    assertEquals(false, read.canReadInt());
  }

  public void testInts () throws IOException {
    runIntTest(new UnsafeOutput(4096));
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeMemoryInput.limit()

    write.writeVarInt(400, true);

    read = new UnsafeMemoryInput(write.toBytes());
    assertEquals(true, read.canReadInt());
    read.setLimit(read.limit() - 1);
    assertEquals(false, read.canReadInt());
  }

  public void testInts () throws IOException {
    runIntTest(new UnsafeMemoryOutput(4096));
View Full Code Here

Examples of com.google.appengine.api.datastore.FetchOptions.limit()

      // no pagination but pageOption active
      if(pag.isActive()){
        // if local limit is set, it overrides the pageOption.pageSize
        if(limit!=Integer.MAX_VALUE){
          gaeCtx.realPageSize = limit;
          fetchOptions.limit(gaeCtx.realPageSize);
          // pageOption is passivated to be sure it is not reused
          pag.passivate();
        }
        // using pageOption.pageSize
        else {
View Full Code Here

Examples of com.google.code.hs4j.network.buffer.IoBuffer.limit()

    assertNull(this.cmd.getIoBuffer());
    this.cmd.encode();
    IoBuffer buf = this.cmd.getIoBuffer();
    assertNotNull(buf);
    assertEquals(0, buf.position());
    assertTrue(buf.limit() > 0);

    assertEquals("P\t1\tmytest\tuser\tINDEX_1\tid,name,password\n",
        new String(buf.array(), 0, buf.limit()));

    IoBuffer buffer = IoBuffer.allocate(4);
View Full Code Here

Examples of com.google.code.yanf4j.buffer.IoBuffer.limit()

        IoBuffer buf = IoBuffer.allocate(4);
        buf.putInt(0xdeadbeef);
        buf.clear();
        assertEquals(0xdeadbeef, buf.getInt());
        assertEquals(4, buf.position());
        assertEquals(4, buf.limit());

        buf.sweep();
        assertEquals(0, buf.position());
        assertEquals(4, buf.limit());
        assertEquals(0x0, buf.getInt());
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.