Examples of limitSize()


Examples of eu.stratosphere.runtime.io.Buffer.limitSize()

            "to the Buffer broker (after becoming available).");
      }

      // This alters the state of the last `decodeEnvelope(ByteBuf)`
      // call to set the buffer, which has become available again
      availableBuffer.limitSize(currentBufferRequestSize);
      currentEnvelope.setBuffer(availableBuffer);
      currentDataBuffer = availableBuffer.getMemorySegment().wrap(0, InboundEnvelopeDecoder.this.currentBufferRequestSize);
      currentBufferRequestSize = 0;

      stagedBuffer.release();
View Full Code Here

Examples of org.apache.flink.runtime.io.network.Buffer.limitSize()

            "to the Buffer broker (after becoming available).");
      }

      // This alters the state of the last `decodeEnvelope(ByteBuf)`
      // call to set the buffer, which has become available again
      availableBuffer.limitSize(currentBufferRequestSize);
      currentEnvelope.setBuffer(availableBuffer);
      currentDataBuffer = availableBuffer.getMemorySegment().wrap(0, InboundEnvelopeDecoder.this.currentBufferRequestSize);
      currentBufferRequestSize = 0;

      stagedBuffer.release();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitSize()

    }

    @Override
    public Size getRequiredSize(final Size availableSpace) {
        final Size requiredSize = new Size(size);
        requiredSize.limitSize(availableSpace);
        return requiredSize;
    }
}
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitSize()

        }
        if (size.getHeight() > maximumSize.getHeight()) {
            size.extendWidth(SCROLLBAR_WIDTH);
        }
        size.extend(left, top);
        size.limitSize(maximumSize);
        return size;
    }

    @Override
    public Size getSize() {
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Size.limitSize()

        }
        if (size.getHeight() > maximumSize.getHeight()) {
            size.extendWidth(SCROLLBAR_WIDTH);
        }
        size.extend(left, top);
        size.limitSize(maximumSize);
        return size;
    }

    @Override
    public Size getSize() {
View Full Code Here

Examples of org.odbms.Query.limitSize()

        {
            Query q = broker.query();
            // we are faking a soda query here:
            ((QueryImpl) q).setOjbQuery(ojbQuery());
            int limit = 13;
            q.limitSize(limit);
            ObjectSet oSet = q.execute();
            logger.info("Size of ObjectSet: " + oSet.size());
            assertEquals(limit,oSet.size());
            int count = 0;
            while (oSet.hasNext())
View Full Code Here

Examples of org.odbms.Query.limitSize()

        {
            Query q = broker.query();
            // we are faking a soda query here:
            ((QueryImpl) q).setOjbQuery(ojbQuery());
            int limit = 13;
            q.limitSize(limit);
            ObjectSet oSet = q.execute();
            logger.info("Size of ObjectSet: " + oSet.size());
            assertEquals(limit,oSet.size());
            int count = 0;
            for (int i=0; i<7; i++)
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.