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

Commit beffd72

Browse files
author
Nomiero
committed
add a new constructor for pig storage that has offerType for usability
1 parent 60ab8fd commit beffd72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/com/microsoft/azure/documentdb/pig/DocumentDBStorage.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,19 @@ public DocumentDBStorage(String masterkey, String dbName, String outputCollectio
5757
this(masterkey, dbName, outputCollections, null, null, null);
5858
}
5959

60-
public DocumentDBStorage(String masterkey, String dbName, String outputCollections, String rangeindexed, String upsert, String offerType) {
60+
public DocumentDBStorage(String masterkey, String dbName, String outputCollections, String offerType){
61+
this(masterkey, dbName, outputCollections, offerType, null, null);
62+
}
63+
64+
public DocumentDBStorage(String masterkey, String dbName, String outputCollections, String offerType, String rangeindexed, String upsert) {
6165
this.masterkey = masterkey;
6266
this.dbName = dbName;
6367
this.outputCollections = outputCollections;
6468
this.upsert = upsert;
6569
this.rangeIndexed = rangeindexed;
6670
this.offerType = offerType;
6771

68-
//Set the userAgent to pig storage
72+
// Set the userAgent to pig storage
6973
if (!DocumentDBConnectorUtil.UserAgentSuffix.contains(DocumentDBStorage.PIG_STORAGE_USERAGENT)) {
7074
DocumentDBConnectorUtil.UserAgentSuffix += DocumentDBStorage.PIG_STORAGE_USERAGENT;
7175
}

0 commit comments

Comments
 (0)