MCPcopy Create free account
hub / github.com/MariaDB/server / AggregateColl

Method AggregateColl

storage/connect/Mongo2Interface.java:177–195  ·  view source on GitHub ↗
(String pipeline)

Source from the content-addressed store, hash-verified

175 } // end of FindColl
176
177 @SuppressWarnings("unchecked")
178 public boolean AggregateColl(String pipeline) {
179 if (DEBUG)
180 System.out.println("AggregateColl: pipeline=" + pipeline);
181
182 try {
183 DBObject pipe = (DBObject) JSON.parse(pipeline);
184
185 pip = (List<DBObject>) pipe.get("pipeline");
186 aop = AggregationOptions.builder().batchSize(0).allowDiskUse(true)
187 .outputMode(AggregationOptions.OutputMode.CURSOR).build();
188 cursor = coll.aggregate(pip, aop);
189 } catch (MongoException me) {
190 SetErrmsg(me);
191 return true;
192 } // end try/catch
193
194 return false;
195 } // end of AggregateColl
196
197 public boolean Rewind() {
198 if (cursor != null)

Callers 2

mainMethod · 0.45
mainMethod · 0.45

Calls 5

SetErrmsgMethod · 0.95
buildMethod · 0.80
parseMethod · 0.45
getMethod · 0.45
aggregateMethod · 0.45

Tested by

no test coverage detected