Package com.alibaba.otter.node.etl.load.loader.weight

Examples of com.alibaba.otter.node.etl.load.loader.weight.WeightBuckets.addItem()


        WeightBuckets<String> bucket = new WeightBuckets();
        int iCount = 10;
        int jCount = 100;
        for (int i = 0; i < iCount; i++) {
            for (int j = 0; j < jCount; j++) {
                bucket.addItem(i, "name:" + i + "_" + j);
            }
        }

        for (int i = 0; i < iCount; i++) {
            List<String> items = bucket.getItems(i);
View Full Code Here


        WeightBuckets<String> bucket = new WeightBuckets();
        int iCount = 10;
        int jCount = 100;
        for (int i = 0; i < iCount; i++) {
            for (int j = 0; j < jCount; j++) {
                bucket.addItem(j, "name:" + i + "_" + j);
            }
        }

        for (int j = 0; j < jCount; j++) {
            List<String> items = bucket.getItems(j);
View Full Code Here

    }

    @Test
    public void test_custom() {
        WeightBuckets<String> bucket = new WeightBuckets();
        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
View Full Code Here

    @Test
    public void test_custom() {
        WeightBuckets<String> bucket = new WeightBuckets();
        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
View Full Code Here

    @Test
    public void test_custom() {
        WeightBuckets<String> bucket = new WeightBuckets();
        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");
View Full Code Here

    public void test_custom() {
        WeightBuckets<String> bucket = new WeightBuckets();
        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");
View Full Code Here

        WeightBuckets<String> bucket = new WeightBuckets();
        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");

        List<Long> weights = bucket.weights();
View Full Code Here

        bucket.addItem(6, "6");
        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");

        List<Long> weights = bucket.weights();
        want.number(weights.get(0)).isEqualTo(1);
View Full Code Here

        bucket.addItem(1, "1");
        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");

        List<Long> weights = bucket.weights();
        want.number(weights.get(0)).isEqualTo(1);
        want.number(weights.get(1)).isEqualTo(2);
View Full Code Here

        bucket.addItem(5, "5");
        bucket.addItem(3, "3");
        bucket.addItem(5, "51");
        bucket.addItem(2, "2");
        bucket.addItem(4, "4");
        bucket.addItem(6, "61");

        List<Long> weights = bucket.weights();
        want.number(weights.get(0)).isEqualTo(1);
        want.number(weights.get(1)).isEqualTo(2);
        want.number(weights.get(2)).isEqualTo(3);
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.