Package com.asakusafw.compiler.flow.DataClass

Examples of com.asakusafw.compiler.flow.DataClass.Property


        context.add(cache.createReset());
        Expression inputObject = context.getInput();
        Expression outputObject = cache.get();
        for (DataClass.Property sinkProperty : sinkType.getProperties()) {
            Property sourceProperty = sourceType.findProperty(sinkProperty.getName());
            if (sourceProperty == null) {
                getEnvironment().error(
                        "{0}において、{2}.{3}に対応するプロパティが{1}に定義されていません",
                        context.getOperatorDescription().getName(),
                        sourceType,
                        sinkType,
                        sinkProperty.getName());
            } else if (sourceProperty.getType().equals(sinkProperty.getType()) == false) {
                getEnvironment().error(
                        "{0}において、{1}.{2}と{3}.{4}のプロパティ型が一致しません",
                        context.getOperatorDescription().getName(),
                        sourceType,
                        sourceProperty.getName(),
                        sinkType,
                        sinkProperty.getName());
            } else {
                context.add(sinkProperty.createSetter(outputObject,
                        sourceProperty.createGetter(inputObject)));
            }
        }
    }
View Full Code Here


        DataClass dataClass = toDataClass(input);
        ShuffleKey key = input.getDescription().getShuffleKey();
        assert key != null;
        List<Property> results = Lists.create();
        for (String name : key.getGroupProperties()) {
            Property property = dataClass.findProperty(name);
            if (property == null) {
                getEnvironment().error(
                        "型{0}にプロパティ{1}が見つかりませんでした",
                        dataClass,
                        name);
View Full Code Here

        ResolvedSlot slot0 = resolved.get(0);
        assertThat(slot0.getSource(), is(slot));
        assertThat(slot0.getValueClass().getType(), equalTo((Object) Ex1.class));
        assertThat(slot0.getSortProperties().size(), is(1));
        Property prop = slot0.getSortProperties().get(0);
        assertThat(prop.getName(), is("sid"));
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.compiler.flow.DataClass.Property

Copyright © 2018 www.massapicom. 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.