Examples of canonicalize()


Examples of com.redhat.ceylon.compiler.typechecker.model.IntersectionType.canonicalize()

                for (ProducedType st: d.getType().getSupertypes()) {
                    addToIntersection(list, st, unit);
                }
                IntersectionType it = new IntersectionType(unit);
                it.setSatisfiedTypes(list);
        it.canonicalize().getType();
            }
            catch (RuntimeException re) {
                if (displayErrors)
                that.addError("inheritance hierarchy is undecidable: " +
                        "could not canonicalize the intersection of all supertypes of '" +
View Full Code Here

Examples of com.sun.xml.wss.impl.c14n.Canonicalizer.canonicalize()

       Canonicalizer canonicalizer =
                             CanonicalizerFactory.
                                   getCanonicalizer(((AttachmentSignatureInput)input).getContentType());

       return canonicalizer.canonicalize(inputContentBytes);   
   }

   public boolean wantsOctetStream ()   { return true; }
   public boolean wantsNodeSet ()       { return true; }
   public boolean returnsOctetStream () { return true; }
View Full Code Here

Examples of com.sun.xml.wss.impl.c14n.Canonicalizer.canonicalize()

       byte[] outputHeaderBytes = mHCanonicalizer._canonicalize( ((AttachmentSignatureInput)input).getMimeHeaders().iterator());
       
       Canonicalizer canonicalizer =
                             CanonicalizerFactory.
                                   getCanonicalizer(((AttachmentSignatureInput)input).getContentType());
       byte[] outputContentBytes = canonicalizer.canonicalize(inputContentBytes);

       byte[] outputBytes = new byte[outputHeaderBytes.length+outputContentBytes.length];
       System.arraycopy(outputHeaderBytes, 0, outputBytes, 0, outputHeaderBytes.length);
       System.arraycopy(outputContentBytes, 0, outputBytes,
                                   outputHeaderBytes.length, outputContentBytes.length);
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.DescriptorFactory.canonicalize()

    public void canonicalizeAll() {
        DescriptorFactory descriptorFactory = DescriptorFactory.instance();
        for (XMethod m : methods.values()) {
            if (m instanceof MethodDescriptor) {
                descriptorFactory.canonicalize((MethodDescriptor) m);
            }
        }
        for (XField f : fields.values()) {
            if (f instanceof FieldDescriptor) {
                descriptorFactory.canonicalize((FieldDescriptor) f);
View Full Code Here

Examples of edu.umd.cs.findbugs.classfile.DescriptorFactory.canonicalize()

                descriptorFactory.canonicalize((MethodDescriptor) m);
            }
        }
        for (XField f : fields.values()) {
            if (f instanceof FieldDescriptor) {
                descriptorFactory.canonicalize((FieldDescriptor) f);
            }
        }
    }

    /**
 
View Full Code Here

Examples of gnu.math.IntNum.canonicalize()

                    IntNum q = new IntNum();
                    IntNum r = new IntNum();
                    IntNum.divide(Number.intValue(on),Number.intValue(arg), q, r, IntNum.TRUNCATE);

                    return context.runtime.newTuple(context.runtime.newNumber(q.canonicalize()), context.runtime.newNumber(r.canonicalize()));
                }
            }));

        rational.registerMethod(runtime.newNativeMethod("returns this number to the power of the argument", new TypeCheckingNativeMethod("**") {
                private final TypeCheckingArgumentsDefinition ARGUMENTS = TypeCheckingArgumentsDefinition
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.sort.RecordBatchData.canonicalize()

          // fall through.
        case OK:
          countSincePurge += incoming.getRecordCount();
          batchCount++;
          RecordBatchData batch = new RecordBatchData(incoming);
          batch.canonicalize();
          if (priorityQueue == null) {
            priorityQueue = createNewPriorityQueue(context, config.getOrderings(), new ExpandableHyperContainer(batch.getContainer()), MAIN_MAPPING, LEFT_MAPPING, RIGHT_MAPPING);
          }
          priorityQueue.add(context, batch);
          if (countSincePurge > config.getLimit() && batchCount > batchPurgeThreshold) {
View Full Code Here

Examples of org.apache.drill.exec.physical.impl.sort.SortRecordBatchBuilder.canonicalize()

      builder.add(newBatch);
    } while (selectionVector4.next());
    selectionVector4.clear();
    c.clear();
    VectorContainer newQueue = new VectorContainer();
    builder.canonicalize();
    builder.build(context, newQueue);
    priorityQueue.resetQueue(newQueue, builder.getSv4().createNewWrapperCurrent());
    builder.getSv4().clear();
    selectionVector4.clear();
    logger.debug("Took {} us to purge", watch.elapsed(TimeUnit.MICROSECONDS));
View Full Code Here

Examples of org.apache.drill.exec.record.RecordBatchLoader.canonicalize()

        ++i;
      }

      // Canonicalize each incoming batch, so that vectors are alphabetically sorted based on SchemaPath.
      for (RecordBatchLoader loader : batchLoaders) {
        loader.canonicalize();
      }

      // Ensure all the incoming batches have the identical schema.
      if (!isSameSchemaAmongBatches(batchLoaders)) {
        logger.error("Incoming batches for merging receiver have diffferent schemas!");
View Full Code Here

Examples of org.apache.jcp.xml.dsig.internal.dom.DOMSignedInfo.canonicalize()

        /*
         * Calculation of XML signature digest value.
         */
        DOMSignedInfo domSignedInfo = (DOMSignedInfo)signedInfo;
        ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
        domSignedInfo.canonicalize(xmlSignContext, dataStream);
        byte[] octets = dataStream.toByteArray();

        /*
         * TODO: we could be using DigestOutputStream here to optimize memory
         * usage.
 
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.