Examples of foldings()


Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        loader.setNamespace(Constants.SOURCE_TABLE);

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        loader.setNamespace(Constants.SOURCE_TABLE);

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }

    /**
 
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "sid", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
        assertThat(term.shuffle(), is(grouping("valueA")));
    }

    /**
     * Summarize with conflict grouping key and aggregation target.
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        loader.setNamespace(Constants.SOURCE_TABLE);

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(2));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "grouping", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "grouping", "count")));
        assertThat(term.shuffle(), is(grouping("grouping")));
    }
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        loader.setNamespace(Constants.SOURCE_TABLE);

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(2));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "grouping", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "grouping", "count")));
        assertThat(term.shuffle(), is(grouping("grouping")));
    }

    private Matcher<Key> grouping(final String... properties) {
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("Target")));
        assertThat(term.foldings().length, is(2));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "grouping", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "grouping", "count")));
        assertThat(term.shuffle(), is(grouping("grouping")));
    }

    private Matcher<Key> grouping(final String... properties) {
        return new BaseMatcher<Key>() {
View Full Code Here

Examples of com.asakusafw.vocabulary.model.Summarized.Term.foldings()

        Summarized annotation = loader.modelType("Simple").getAnnotation(Summarized.class);
        assertThat(annotation, not(nullValue()));

        Term term = annotation.term();
        assertThat(term.source(), eq(loader.modelType("A")));
        assertThat(term.foldings().length, is(5));
        assertThat(term.foldings(), hasItemInArray(mapping(ANY, "valueA", "key")));
        assertThat(term.foldings(), hasItemInArray(mapping(SUM, "valueB", "sum")));
        assertThat(term.foldings(), hasItemInArray(mapping(COUNT, "valueA", "count")));
        assertThat(term.foldings(), hasItemInArray(mapping(MAX, "valueC", "max")));
        assertThat(term.foldings(), hasItemInArray(mapping(MIN, "valueC", "min")));
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.