Package com.alibaba.otter.node.etl.load.loader.db.DbLoadMerger

Examples of com.alibaba.otter.node.etl.load.loader.db.DbLoadMerger.RowKey


        Map<RowKey, EventData> mergeMap = new MapMaker().makeMap();
        DbLoadMerger.merge(makeInsertEventData(), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
View Full Code Here


        DbLoadMerger.merge(makeInsertEventData(), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(), mergeMap);
        DbLoadMerger.merge(makeDeleteEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        DbLoadMerger.merge(makeUpdateEventData(), mergeMap);
        DbLoadMerger.merge(makeDeleteEventData(), mergeMap);
        DbLoadMerger.merge(makeInsertEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        Map<RowKey, EventData> mergeMap = new MapMaker().makeMap();
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE, KEY_VALUE_NEW1), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW1, KEY_VALUE_NEW2), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE_NEW2, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW1, KEY_VALUE_NEW2), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW2, KEY_VALUE), mergeMap);
        DbLoadMerger.merge(makeDeleteEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE_NEW1, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW1, KEY_VALUE_NEW2), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW2, KEY_VALUE_NEW3), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW3, KEY_VALUE_NEW4), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE_NEW4, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW1, KEY_VALUE_NEW2), mergeMap);
        DbLoadMerger.merge(makeUpdateEventData(KEY_VALUE_NEW2, KEY_VALUE), mergeMap);
        DbLoadMerger.merge(makeInsertEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

        Map<RowKey, EventData> mergeMap = new MapMaker().makeMap();
        DbLoadMerger.merge(makeInsertEventData(), mergeMap);
        DbLoadMerger.merge(makeInsertEventData(), mergeMap);

        for (Entry<RowKey, EventData> entry : mergeMap.entrySet()) {
            RowKey key = entry.getKey();
            EventColumn keyColumn = key.getKeys().get(0);
            Assert.assertEquals(KEY_VALUE, keyColumn.getColumnValue());
            Assert.assertEquals(KEY_NAME, keyColumn.getColumnName());

            EventData eventData = entry.getValue();
            Assert.assertEquals(SCHEMA_NAME, eventData.getSchemaName());
View Full Code Here

TOP

Related Classes of com.alibaba.otter.node.etl.load.loader.db.DbLoadMerger.RowKey

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.