File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
includes/fundamentals/code-snippets/builders Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ Use these methods to construct pipeline stages and specify them in your
45
45
aggregation as a list:
46
46
47
47
.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggBuilders.java
48
- :start-after: begin sampleAggregation
49
- :end-before: end sampleAggregation
48
+ :start-after: begin aggregationSample
49
+ :end-before: end aggregationSample
50
50
:language: java
51
51
:dedent:
52
52
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ public static void main(String[] args) {
82
82
}
83
83
84
84
private void aggregationExample () {
85
- // begin sampleAggregation
85
+ // begin aggregationSample
86
86
Bson matchStage = match (eq ("some_field" , "some_criteria" ));
87
87
Bson sortByCountStage = sortByCount ("some_field" );
88
88
collection .aggregate (asList (matchStage , sortByCountStage )).forEach (doc -> System .out .println (doc ));
89
- // end sampleAggregation
89
+ // end aggregationSample
90
90
}
91
91
92
92
private void setWindowFieldsStage () {
You can’t perform that action at this time.
0 commit comments