Skip to content
This repository was archived by the owner on Jan 29, 2022. It is now read-only.

Commit a486e76

Browse files
author
Peter Ableda
committed
Add a new constructor and mark the constructor with the useUpsert attribute directed
1 parent 900ee62 commit a486e76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pig/src/main/java/com/mongodb/hadoop/pig/MongoInsertStorage.java

+5
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ public class MongoInsertStorage extends StoreFunc implements StoreMetadata {
5858
public MongoInsertStorage() {
5959
}
6060

61+
public MongoInsertStorage(final String idField) {
62+
this.idField = idField;
63+
}
64+
65+
@Deprecated
6166
public MongoInsertStorage(final String idField, final String useUpsert) {
6267
this.idField = idField;
6368
}

0 commit comments

Comments
 (0)