Examples of limit()


Examples of de.fuberlin.wiwiss.d2rq.algebra.TripleRelation.limit()

        subjectChecker.addPotentialMatch(tripleRelation.nodeMaker(TripleRelation.SUBJECT));
        predicateChecker.addPotentialMatch(tripleRelation.nodeMaker(TripleRelation.PREDICATE));
        objectChecker.addPotentialMatch(tripleRelation.nodeMaker(TripleRelation.OBJECT));
        TripleRelation r = new JoinOptimizer(selectedTripleRelation).optimize();
        if (limitPerRelation != Relation.NO_LIMIT) {
          r = r.limit(limitPerRelation);
        }
        result.add(r);
      }
    }
    return result;
View Full Code Here

Examples of dwlab.shapes.maps.DoubleMap.limit()

    draw( targetMap.toNewImage(), "Target map" );

    DoubleMap doubleMap = new DoubleMap( mapSize, mapSize );
    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
    doubleMap.limit();
    draw( doubleMap.toNewImage(), "Adding source map to target map" );

    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.MULTIPLY );
    draw( doubleMap.toNewImage(), "Multiplying source map with target map" );
View Full Code Here

Examples of es.twentymobile.mule.modules.jpa.dsl.CustomJPAQuery.limit()

      }
      Object result;
      if (singleResult == null || singleResult.equals(Boolean.FALSE)) {
        if (maxRes != 0) {
          if (!returnCount) {
            result = query.limit(maxRes).list(jpaQuery.getBasePath());
          } else {
            JPACountQueryResult queryResult = new JPACountQueryResult();
            queryResult.setResult(query.limit(maxRes).list(jpaQuery.getBasePath()));
            queryResult.setCount(query.count());
            result = queryResult;
View Full Code Here

Examples of etch.util.core.nio.ByteBufferPool.limit()

  public void construct7() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 1, 2, 3, 4, 5 );
    assertEquals( 1, p.bufferSize() );
    assertEquals( 2, p.min() );
    assertEquals( 3, p.limit() );
    assertEquals( 4, p.interval() );
    assertEquals( 5, p.length() );
    p.shutdown();
  }
View Full Code Here

Examples of etch.util.core.nio.History.limit()

  @Test
  public void construct1() throws Exception
  {
    History h = new History( 1, 2, 3 );
    assertEquals( 1, h.min() );
    assertEquals( 2, h.limit() );
    assertEquals( 3, h.length() );
  }

  /** @throws Exception */
  @Test
 
View Full Code Here

Examples of facebook4j.Reading.limit()

    @Test
    public void testCopy() throws Exception {
        final Reading source = new Reading();
        source.fields("field1", "field2");
        source.filter("testFilter");
        source.limit(100);
        source.locale(Locale.US);
        source.metadata();
        source.offset(1000);
        source.since(new Date());
        source.until(new Date());
View Full Code Here

Examples of java.nio.Buffer.limit()

        h.check(true, "position: can't be negative");
      }

    // position can't be larger than limit
    buf = factory.newInstance();
    buf.limit(5);
    try
      {
        buf.position(6);
        h.check(false, "position: is larger than capacity");
      }
View Full Code Here

Examples of java.nio.ByteBuffer.limit()

    {
        buffer.clear();
        int size=buffer.capacity();
        ByteBuffer bbuf = ((NIOBuffer)buffer).getByteBuffer();
        bbuf.position(0);
        bbuf.limit(size);
       
        if (size==_applicationBufferSize)
            _applicationBuffers.add(buffer);
        else if (size==_packetBufferSize)
            _packetBuffers.add(buffer);
View Full Code Here

Examples of java.nio.ByteBuffer.limit()

               
        int  old_limit = b.limit();
       
        if ( b.remaining() > rem ){
         
          b.limit( b.position() + rem );
        }
       
        buffer.put( b );
       
        b.limit( old_limit );
View Full Code Here

Examples of java.nio.ByteBuffer.limit()

          b.limit( b.position() + rem );
        }
       
        buffer.put( b );
       
        b.limit( old_limit );
       
        total += rem - buffer.remaining();
       
        if ( b.hasRemaining()){
         
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.