Examples of transform()


Examples of org.apache.ivy.plugins.namespace.NamespaceTransformer.transform()

        NamespaceTransformer t = ns.getToSystemTransformer();
        if (t.isIdentity()) {
            return md;
        }
        DefaultModuleDescriptor nmd = new DefaultModuleDescriptor(md.getParser(), md.getResource());
        nmd.revId = t.transform(md.getModuleRevisionId());
        nmd.resolvedRevId = t.transform(md.getResolvedModuleRevisionId());
        nmd.status = md.getStatus();
        nmd.publicationDate = md.getPublicationDate();
        nmd.resolvedPublicationDate = md.getResolvedPublicationDate();

Examples of org.apache.karaf.eik.core.features.internal.ElementTransformer.transform()

    }

    @Override
    public Object getParent() {
        final Transformer transformer = new ElementTransformer();
        return transformer.transform(element.getParentElement());
    }

    public String getRepositoryUrl() {
        return repositoryUrl;
    }

Examples of org.apache.myfaces.extensions.cdi.scripting.impl.spi.ExternalExpressionInterpreter.transform()

    }

    private String interpreteScript(String script)
    {
        ExternalExpressionInterpreter externalExpressionInterpreter = resolveExternalExpressionInterpreter();
        return externalExpressionInterpreter.transform(script);
    }
}

Examples of org.apache.ode.axis2.util.UrlReplacementTransformer.transform()

            for (int k = 3; k < data.length; k = k + 2) {
                Element element = doc.createElement(data[k]);
                element.setTextContent(data[k + 1]);
                parts.put(data[k], element);
            }
            assertEquals(data[0], data[2], encoder.transform(data[1], parts));
        }
    }


    public void testWithBraces() {

Examples of org.apache.phoenix.schema.ColumnModifier.transform()

            ColumnModifier modifier = childPart.getColumn().getColumnModifier();
            CompareOp op = node.getFilterOp();
            // For descending columns, the operator needs to be transformed to
            // it's opposite, since the range is backwards.
            if (modifier != null) {
                op = modifier.transform(op);
            }
            KeyRange keyRange = childPart.getKeyRange(op, rhs);
            return newKeyParts(childSlot, node, keyRange);
        }

Examples of org.apache.phoenix.schema.SortOrder.transform()

            Expression rhs = node.getChildren().get(1);
            KeySlots childSlots = childParts.get(0);
            KeySlot childSlot = childSlots.iterator().next();
            KeyPart childPart = childSlot.getKeyPart();
            SortOrder sortOrder = childPart.getColumn().getSortOrder();
            CompareOp op = sortOrder.transform(node.getFilterOp());
            KeyRange keyRange = childPart.getKeyRange(op, rhs);
            return newKeyParts(childSlot, node, keyRange);
        }

        // TODO: consider supporting expression substitution in the PK for pre-joined tables

Examples of org.apache.pig.impl.logicalLayer.optimizer.ImplicitSplitInserter.transform()

    //Test to ensure that the right exception is thrown
    public void testErrImplicitSplitInserter() throws Exception {
        LogicalPlan lp = new LogicalPlan();
        ImplicitSplitInserter isi = new ImplicitSplitInserter(lp);
        try {
            isi.transform(lp.getRoots());
        } catch(Exception e) {
            assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
   

Examples of org.apache.pig.impl.logicalLayer.optimizer.OpLimitOptimizer.transform()

    //Test to ensure that the right exception is thrown
    public void testErrOpLimitOptimizer() throws Exception {
      org.apache.pig.impl.logicalLayer.LogicalPlan lp = new org.apache.pig.impl.logicalLayer.LogicalPlan();
        OpLimitOptimizer olo = new OpLimitOptimizer(lp);
        try {
            olo.transform(lp.getRoots());
        } catch(Exception e) {
            Assert.assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
   

Examples of org.apache.pig.impl.logicalLayer.optimizer.TypeCastInserter.transform()

    //Test to ensure that the right exception is thrown
    public void testErrTypeCastInserter() throws Exception {
        LogicalPlan lp = new LogicalPlan();
        TypeCastInserter tci = new TypeCastInserter(lp, "hello");
        try {
            tci.transform(lp.getRoots());
        } catch(Exception e) {
            assertTrue(((OptimizerException)e).getErrorCode() == 2052);
        }
    }
   

Examples of org.apache.pig.newplan.optimizer.Transformer.transform()

        List<OperatorPlan> matches = rule.match(plan);
        if (matches != null) {
            Transformer transformer = rule.getNewTransformer();
            for (OperatorPlan m : matches) {
                if (transformer.check(m)) {
                    transformer.transform(m);
                }
            }
            OperatorSubPlan newPlan = (OperatorSubPlan)transformer.reportChanges();
            Assert.assertTrue(newPlan.getBasePlan().isEqual(plan));
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.