Examples of limit()


Examples of com.slytechs.utils.memory.BitBuffer.limit()

    BitBuffer b = getBuffer();

    Header last = headers.getHeader(headers.size() - 1);
    int p = b.position() + last.getOffset() + last.getLength();
    p = (p > b.limit() ? b.limit() : p);

    // Now position the buffer
    b.position(p);

    return b;
View Full Code Here

Examples of com.sun.j3d.internal.ByteBufferWrapper.limit()

/* 119 */             J3DBuffer buf = ((GeometryArray)this.node).getColorRefBuffer();
/* 120 */             switch (BufferWrapper.getBufferType(buf)) {
/*     */             case 2:
/* 122 */               out.writeInt(1);
/* 123 */               ByteBufferWrapper bb = new ByteBufferWrapper(buf);
/* 124 */               byte[] bytes = new byte[bb.limit()];
/* 125 */               bb.position(0);
/* 126 */               bb.get(bytes);
/* 127 */               out.writeInt(bytes.length);
/* 128 */               out.write(bytes);
/*     */
View Full Code Here

Examples of com.sun.j3d.internal.DoubleBufferWrapper.limit()

/*     */
/* 272 */               break;
/*     */             case 4:
/* 274 */               out.writeInt(3);
/* 275 */               DoubleBufferWrapper bb = new DoubleBufferWrapper(buf);
/* 276 */               double[] doubles = new double[bb.limit()];
/* 277 */               bb.position(0);
/* 278 */               bb.get(doubles);
/* 279 */               writeDoubleArray(out, doubles);
/*     */
/* 281 */               break;
View Full Code Here

Examples of com.sun.j3d.internal.FloatBufferWrapper.limit()

/* 166 */       else initial = 0;
/*     */       float[] d;
/* 169 */       if ((vertexFormat & 0x800) != 0) {
/* 170 */         J3DBuffer b = geomArray.getInterleavedVertexBuffer();
/* 171 */         FloatBufferWrapper w = new FloatBufferWrapper(b);
/* 172 */         float[] d = new float[w.limit()];
/* 173 */         w.position(0);
/* 174 */         w.get(d); } else {
/* 175 */         d = geomArray.getInterleavedVertices();
/*     */       }
/* 177 */       int offset = 0;
View Full Code Here

Examples of com.sun.sgs.impl.sharedutil.MessageBuffer.limit()

    break;
   
      case SimpleSgsProtocol.SESSION_MESSAGE:
    ByteBuffer clientMessage =
        ByteBuffer.wrap(msg.getBytes(msg.limit() - msg.position()));
    if (protocolHandler == null) {
        // ignore message before authentication
        if (logger.isLoggable(Level.FINE)) {
      logger.log(
          Level.FINE,
View Full Code Here

Examples of com.taobao.tdhs.client.easy.Query.limit()

        int limit = parseSQL.getLimit();
        int start = parseSQL.getLimitOffset();
        if (limit < 0 || start < 0) {
            throw new TDHSSQLException("limit can't be negative!", parseSQL.getSql());
        }
        query.limit(start, limit);
        return query;
    }

    private void processKey(ParseSQL parseSQL, List<OperationStruct> keys, Where where) throws TDHSSQLException {
        String firstKeyOper = keys.get(0).getOper();
View Full Code Here

Examples of com.tinkerpop.blueprints.GraphQuery.limit()

   
    stub(mockGraphQuery.interval("", "bar", "bif")).toReturn(mockGraphQuery);
    query.interval("", "bar", "bif");
    verify(mockGraphQuery).interval(eq(""), eq("bar"), eq("bif"));
   
    stub(mockGraphQuery.limit(1)).toReturn(mockGraphQuery);
    query.limit(1);
    verify(mockGraphQuery).limit(1);
   
   
   
View Full Code Here

Examples of com.tinkerpop.blueprints.VertexQuery.limit()

                    }
                }
                if (this.branchFactor == Integer.MAX_VALUE) {
                    if (this.highRange != Integer.MAX_VALUE) {
                        int temp = this.highRange - this.count;
                        query = temp > 0 ? query.limit(temp) : query;
                    }
                } else {
                    if (this.highRange == Integer.MAX_VALUE) {
                        query = query.limit(this.branchFactor);
                    } else {
View Full Code Here

Examples of com.uwyn.rife.database.queries.Select.limit()

          }

          try
          {
            search_count = Integer.parseInt(search_part.substring(equality_index+1));
            searchLogAdapted.limit(search_count);
          }
          catch (NumberFormatException e)
          {
            throw new InvalidSearchSyntaxException(bot, channel, search);
          }
View Full Code Here

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

    if (x.equals(NodeMaker.EMPTY)) return;
    Set<ProjectionSpec> requiredProjections = new HashSet<ProjectionSpec>();
    requiredProjections.add(downloadMap.getContentDownloadColumn());
    requiredProjections.addAll(mediaTypeValueMaker.projectionSpecs());
    newRelation.project(requiredProjections);
    newRelation.limit(1);
    Relation filteredRelation = newRelation.immutableSnapshot();
    SelectStatementBuilder builder = new SelectStatementBuilder(filteredRelation);
    String sql = builder.getSQLStatement();
    int contentColumn = builder.getColumnSpecs().indexOf(downloadMap.getContentDownloadColumn()) + 1;
      db = filteredRelation.database();
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.