You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/com/microsoft/azure/documentdb/RangePartitionResolver.java
+6-14Lines changed: 6 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,7 @@ public class RangePartitionResolver<T extends Comparable<T>> implements Partitio
37
37
privateMap<Range<T>, String> partitionMap;
38
38
39
39
/**
40
-
* RangePartitionResolver constructor taking in the PartitionKeyExtractor, a map of Ranges to collection links
41
-
* with the type of class used as the partition key.
40
+
* RangePartitionResolver constructor taking in the PartitionKeyExtractor, a map of Ranges to collection links.
42
41
*
43
42
* @param partitionKeyExtractor an instance of class that implements PartitionKeyExtractor interface.
44
43
* @param partitionMap the map of ranges to collection links.
@@ -69,10 +68,6 @@ public String resolveForCreate(Object document) {
69
68
thrownewIllegalArgumentException("document");
70
69
}
71
70
72
-
if(this.partitionKeyExtractor == null) {
73
-
thrownewUnsupportedOperationException("Unable to extract partition key from document. Ensure that you have provided a valid PartitionKeyExtractor function.");
0 commit comments