driver-core/src/main/com/mongodb/client/model/Aggregates.java
public static Bson out(final String collectionName, final AggregateOutStageOptions options) {
        notNull("collectionName", collectionName);
        notNull("options", options);
        return new OutStage(collectionName, options);
    }
public static Bson out(final String collectionName, final AggregateOutStageOptions options) {
        notNull("collectionName", collectionName);
        notNull("options", options);
        return new OutStage(collectionName, options);
    }
Creates a $out pipeline stage using the specified collection name and options

@param collectionName the collection name
@param options the $out stage options
@return the $out pipeline stage
@mongodb.driver.manual reference/operator/aggregation/out/  $out
@mongodb.server.release 2.6