public abstract class AggregationQuery extends java.lang.Object implements SerializableFunction<com.mongodb.client.MongoCollection<org.bson.Document>,com.mongodb.client.MongoCursor<org.bson.Document>>
Constructor and Description |
---|
AggregationQuery() |
Modifier and Type | Method and Description |
---|---|
com.mongodb.client.MongoCursor<org.bson.Document> |
apply(com.mongodb.client.MongoCollection<org.bson.Document> collection)
Returns the result of invoking this function on the given input.
|
static AggregationQuery |
create() |
AggregationQuery |
withMongoDbPipeline(java.util.List<org.bson.BsonDocument> mongoDbPipeline) |
public static AggregationQuery create()
public AggregationQuery withMongoDbPipeline(java.util.List<org.bson.BsonDocument> mongoDbPipeline)
public com.mongodb.client.MongoCursor<org.bson.Document> apply(com.mongodb.client.MongoCollection<org.bson.Document> collection)
SerializableFunction
apply
in interface ProcessFunction<com.mongodb.client.MongoCollection<org.bson.Document>,com.mongodb.client.MongoCursor<org.bson.Document>>
apply
in interface SerializableFunction<com.mongodb.client.MongoCollection<org.bson.Document>,com.mongodb.client.MongoCursor<org.bson.Document>>