Examples of DType


Examples of eu.admire.dispel.types.DType

    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "data");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("classifierST");
    SType sTypeIn2 = new PrimitiveSType("dataST");
    DType dtypeIn1 = new SimpleDType("classifierDT");
    DType dtypeIn2 = new SimpleDType("dataDT");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn2);
    peInDescr2.setDType(dtypeIn2);

//    inputs.add(peInDescr1);
//    inputs.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "result");
    SType sTypeOut1 = new PrimitiveSType("result");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);
//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);
View Full Code Here

Examples of eu.admire.dispel.types.DType

    ProcessingElementInputDescriptor peInDescr2 = new ProcessingElementInputDescriptor(
        "data");
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("classifierST");
    SType sTypeIn2 = new PrimitiveSType("dataST");
    DType dtypeIn1 = new SimpleDType("classifierDT");
    DType dtypeIn2 = new SimpleDType("dataDT");
    peInDescr1.setSType(sTypeIn1);
    peInDescr1.setDType(dtypeIn1);
    peInDescr2.setSType(sTypeIn2);
    peInDescr2.setDType(dtypeIn2);

//    inputs.add(peInDescr1);
//    inputs.add(peInDescr2);

    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "result");
    SType sTypeOut1 = new PrimitiveSType("result");
    DType dtypeOut1 = new SimpleDType("DummyOutputDType1");
    peOutDescr1.setSType(sTypeOut1);
    peOutDescr1.setDType(dtypeOut1);
//    peOutDescr2.setSType(sTypeOut2);
//    peOutDescr2.setDType(dtypeOut2);
View Full Code Here

Examples of eu.admire.dispel.types.DType

    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "input", true);
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);
    DType dtypeIn = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLStatement");
    peInDescr1.setDType(dtypeIn);
    inputs.add(peInDescr1);

    // output
    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "output1");
    peOutDescr1.setSType(new PrimitiveSType("String"));
    DType dtypeOut = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLQuery");
    peOutDescr1.setDType(dtypeOut);
    outputs.add(peOutDescr1);

    Map<String, String> metadataMap = new HashMap<String, String>();
View Full Code Here

Examples of eu.admire.dispel.types.DType

    ProcessingElementInputDescriptor peInDescr1 = new ProcessingElementInputDescriptor(
        "input", true);
    peInDescr1.setArray(false);
    SType sTypeIn1 = new PrimitiveSType("String");
    peInDescr1.setSType(sTypeIn1);
    DType dtypeIn = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLStatement");
    peInDescr1.setDType(dtypeIn);
    inputs.add(peInDescr1);

    // output
    ProcessingElementOutputDescriptor peOutDescr1 = new ProcessingElementOutputDescriptor(
        "output1");
    peOutDescr1.setSType(new PrimitiveSType("String"));
    DType dtypeOut = new SimpleDType(
        "http://www.admire-project.eu/ontologies/DataMiningOntology#SQLQuery");
    peOutDescr1.setDType(dtypeOut);
    outputs.add(peOutDescr1);

    Map<String, String> metadataMap = new HashMap<String, String>();
View Full Code Here

Examples of eu.admire.dispel.types.DType

        switch (context)
        {
        case TUPLE_ELEMENT:
            TypeTupleElementStrategy element = (TypeTupleElementStrategy)strategy;
            String name = element.getElementName();
            DType type = element.getElementDType();
            mTuple.addElement(name, type);
            break;
        }
    }
View Full Code Here

Examples of eu.admire.dispel.types.DType

        assertEquals(1, modifiers.size());
        assertEquals("permutable", modifiers.get(0).getName());
        stype = descriptor.getInput("inputs").getSType();
        assertTrue(stype instanceof ListSType);
        assertTrue(((ListSType)stype).getChildType() instanceof PrimitiveSType);
        DType dtype = descriptor.getOutput("output").getDType();
    }
View Full Code Here

Examples of eu.admire.dispel.types.DType

            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Type checking: source=" + sourceOutput + ", target=" + targetInput);
        boolean stypesMatch = TypeUtilities.isEqual(sourceSType, targetSType);
        LOG.debug("Stypes match: " + stypesMatch);
        boolean dtypesMatch = TypeUtilities.isEqual(sourceDType, targetDType);
View Full Code Here

Examples of eu.admire.dispel.types.DType

        LiteralValuesNode expressions = new LiteralValuesNode();
        expressions.add(ListMarker.BEGIN);
        columnNames.add(ListMarker.BEGIN);
        for (Entry<String, DType> element : sourceTuple.getElements().entrySet())
        {
            DType targetType = targetTuple.getElements().get(element.getKey());
            if (TypeUtilities.isEqual(element.getValue(), targetType))
            {
                // no conversion required
                continue;
            }
View Full Code Here

Examples of eu.admire.dispel.types.DType

            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Strict type checking: source=" + sourceOutput + ", target=" + targetInput);
        if (!TypeUtilities.isEqual(sourceSType, targetSType))
        {
            throw new TypeIncompatibleException(
View Full Code Here

Examples of eu.admire.dispel.types.DType

            ProcessingElementOutputDescriptor sourceOutput,
            ProcessingElementInputDescriptor targetInput)
        throws TypeIncompatibleException
    {
        SType sourceSType = sourceOutput.getSType();
        DType sourceDType = sourceOutput.getDType();
        SType targetSType = targetInput.getSType();
        DType targetDType = targetInput.getDType();
       
        LOG.debug("Type checking: source=" + sourceOutput + ", target=" + targetInput);
        boolean stypesMatch = TypeUtilities.isEqual(sourceSType, targetSType);
        LOG.debug("Stypes match: " + stypesMatch);
        boolean dtypesMatch = TypeUtilities.isEqual(sourceDType, targetDType);
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.