1
1
package com .conveyal .analysis .results ;
2
2
3
- import com .conveyal .analysis .AnalysisServerException ;
4
3
import com .conveyal .analysis .components .broker .Job ;
5
4
import com .conveyal .file .FileStorageKey ;
6
- import com .conveyal .r5 .analyst .PointSet ;
7
- import com .conveyal .r5 .analyst .cluster .RegionalTask ;
8
5
import com .conveyal .r5 .analyst .cluster .RegionalWorkResult ;
9
6
import org .slf4j .Logger ;
10
7
import org .slf4j .LoggerFactory ;
@@ -24,10 +21,6 @@ public class MultiOriginAssembler {
24
21
25
22
public static final Logger LOG = LoggerFactory .getLogger (MultiOriginAssembler .class );
26
23
27
- private static final int MAX_FREEFORM_OD_PAIRS = 16_000_000 ;
28
-
29
- private static final int MAX_FREEFORM_DESTINATIONS = 4_000_000 ;
30
-
31
24
/**
32
25
* The object representing the progress of the regional analysis as tracked by the broker.
33
26
* It may appear job.templateTask has all the information needed, making the regionalAnalysis field
@@ -67,23 +60,6 @@ public MultiOriginAssembler (Job job, List<RegionalResultWriter> resultWriters)
67
60
this .originsReceived = new BitSet (job .nTasksTotal );
68
61
}
69
62
70
- /**
71
- * Check that origin and destination sets are not too big for generating CSV files.
72
- */
73
- public static void ensureOdPairsUnderLimit (RegionalTask task , PointSet destinationPointSet ) {
74
- // This requires us to have already loaded this destination pointset instance into the transient field.
75
- if ((task .recordTimes || task .includePathResults ) && !task .oneToOne ) {
76
- if (task .getTasksTotal () * destinationPointSet .featureCount () > MAX_FREEFORM_OD_PAIRS ||
77
- destinationPointSet .featureCount () > MAX_FREEFORM_DESTINATIONS
78
- ) {
79
- throw new AnalysisServerException (String .format (
80
- "Freeform requests limited to %d destinations and %d origin-destination pairs." ,
81
- MAX_FREEFORM_DESTINATIONS , MAX_FREEFORM_OD_PAIRS
82
- ));
83
- }
84
- }
85
- }
86
-
87
63
/**
88
64
* There is a bit of logic in this method that wouldn't strictly need to be synchronized (the dimension checks) but
89
65
* those should take a trivial amount of time. For safety and simplicity we synchronize the whole method. The
0 commit comments