Skip to content

Commit

Permalink
Update TableMetadata constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Dinu John <[email protected]>
  • Loading branch information
dinujoh committed Nov 1, 2024
1 parent 6cf6776 commit 66076a9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.opensearch.dataprepper.plugins.source.rds.model;

import java.util.Collections;
import java.util.List;
import java.util.Map;

Expand All @@ -16,6 +17,10 @@ public class TableMetadata {
private Map<String, String[]> setStrValues;
private Map<String, String[]> enumStrValues;

public TableMetadata(String tableName, String databaseName, List<String> columnNames, List<String> primaryKeys) {
this(tableName, databaseName, columnNames, primaryKeys, Collections.emptyMap(), Collections.emptyMap());
}

public TableMetadata(String tableName, String databaseName, List<String> columnNames, List<String> primaryKeys,
Map<String, String[]> setStrValues, Map<String, String[]> enumStrValues) {
this.tableName = tableName;
Expand Down

0 comments on commit 66076a9

Please sign in to comment.