Package org.apache.beam.sdk.io.mongodb
Class AggregationQuery
java.lang.Object
org.apache.beam.sdk.io.mongodb.AggregationQuery
- All Implemented Interfaces:
Serializable
,ProcessFunction<MongoCollection<Document>,
,MongoCursor<Document>> SerializableFunction<MongoCollection<Document>,
MongoCursor<Document>>
public abstract class AggregationQuery
extends Object
implements SerializableFunction<MongoCollection<Document>,MongoCursor<Document>>
Builds a MongoDB AggregateIterable object.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(MongoCollection<Document> collection) Returns the result of invoking this function on the given input.static AggregationQuery
create()
withMongoDbPipeline
(List<BsonDocument> mongoDbPipeline)
-
Constructor Details
-
AggregationQuery
public AggregationQuery()
-
-
Method Details
-
create
-
withMongoDbPipeline
-
apply
Description copied from interface:SerializableFunction
Returns the result of invoking this function on the given input.- Specified by:
apply
in interfaceProcessFunction<MongoCollection<Document>,
MongoCursor<Document>> - Specified by:
apply
in interfaceSerializableFunction<MongoCollection<Document>,
MongoCursor<Document>>
-