Examples of total()


Examples of com.esotericsoftware.kryo.io.Output.total()

    kryo.setRegistrationRequired(true);

    output.clear();
    kryo.writeClassAndObject(output, c);
    output.flush();
    assertEquals(14, output.total());

    Input input = new Input(output.getBuffer());
    kryo.readClassAndObject(input);

    try {
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Output.total()

            final Kryo kryo = kryoThreadLocal.get();
            try (final OutputStream baos = new ByteArrayOutputStream()) {
                final Output output = new Output(baos);
                kryo.writeClassAndObject(output, message);

                final long size = output.total();
                if (size > Integer.MAX_VALUE)
                    throw new SerializationException(String.format("Message size of %s exceeds allocatable space", size));

                encodedMessage = allocator.buffer((int) output.total());
                encodedMessage.writeBytes(output.toBytes());
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Output.total()

                final long size = output.total();
                if (size > Integer.MAX_VALUE)
                    throw new SerializationException(String.format("Message size of %s exceeds allocatable space", size));

                encodedMessage = allocator.buffer((int) output.total());
                encodedMessage.writeBytes(output.toBytes());
            }

            return encodedMessage;
        } catch (Exception ex) {
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Output.total()

                request.put(SerTokens.TOKEN_OP, requestMessage.getOp());
                request.put(SerTokens.TOKEN_ARGS, requestMessage.getArgs());

                kryo.writeClassAndObject(output, request);

                final long size = output.total();
                if (size > Integer.MAX_VALUE)
                    throw new SerializationException(String.format("Message size of %s exceeds allocatable space", size));

                encodedMessage = allocator.buffer((int) size);
                encodedMessage.writeBytes(output.toBytes());
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Output.total()

    kryo.setRegistrationRequired(true);

    output.clear();
    kryo.writeClassAndObject(output, c);
    output.flush();
    assertEquals(14, output.total());

    Input input = new Input(output.getBuffer());
    kryo.readClassAndObject(input);

    try {
View Full Code Here

Examples of com.googlecode.javacv.cpp.opencv_core.CvSeq.total()

                }
                if (faces!=null) {
                    // We iterate over the discovered faces and draw yellow rectangles 
                    // around them.
                    for (int i = 0; i < faces.total(); i++) {
                        CvRect r = new CvRect(cvGetSeqElem(faces, i));
                        cvRectangle(frame, cvPoint(r.x(), r.y()),
                                cvPoint(r.x() + r.width(), r.y() + r.height()),
                                CvScalar.YELLOW, 1, CV_AA, 0);
                       
View Full Code Here

Examples of er.grouping.DRValue.total()

            NSArray tots = recordGroup().totalList();
           
            if (tots != null && tots.count() > 0) {
                DRValue v = recordGroup().totalForKey(totalToShow());
                if(v != null) {
                    doubleValue = v.total();
                } else {
                    return noTotalLabel();
                }
            }
        }
View Full Code Here

Examples of er.grouping.DRValue.total()

                                    coordinates.setObjectForKey(dayCriteria, dayGroup.masterCriteria().keyDesc());
                                    DRRecordGroup recordGroup = model().recordGroupForCoordinates(coordinates);
                                    if(attribTotalKey != null) {
                                        DRValue drValue = (DRValue) recordGroup.totals().objectForKey(attribTotalKey);
                                        if(drValue != null) {
                                            value = drValue.total();
                                        }
                                    } else {
                                        value = ((Number) recordGroup.rawRecordList().valueForKeyPath(recordGroupTotalToShow())).doubleValue();
                                    }
                                    if(dataset instanceof CategoryDataset) {
View Full Code Here

Examples of er.grouping.DRValue.total()

                                coordinates.setObjectForKey(dayCriteria, dayGroup.masterCriteria().keyDesc());
                                DRRecordGroup recordGroup = model().recordGroupForCoordinates(coordinates);
                                if(attribTotalKey != null) {
                                    DRValue drValue = (DRValue) recordGroup.totals().objectForKey(attribTotalKey);
                                    if(drValue != null) {
                                        value = drValue.total();
                                    }
                                } else {
                                    value = ((Number) recordGroup.rawRecordList().valueForKeyPath(recordGroupTotalToShow())).doubleValue();
                                }
                                if(dataset instanceof CategoryDataset) {
View Full Code Here

Examples of freenet.node.RequestTracker.CountedRequests.total()

      this.totalRequests = countCHK.total() + countSSK.total();
      this.expectedTransfersInCHKSR = countCHKSR.expectedTransfersIn();
      this.expectedTransfersInSSKSR = countSSKSR.expectedTransfersIn();
      this.expectedTransfersOutCHKSR = countCHKSR.expectedTransfersOut();
      this.expectedTransfersOutSSKSR = countSSKSR.expectedTransfersOut();
      this.totalRequestsSR = countCHKSR.total() + countSSKSR.total();
    }
   
    /**
     * Create a snapshot of either the requests from a node, or the requests
     * routed to a node. If we are counting requests from a node, we also fill
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.