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 AggregationQuerycreate()withMongoDbPipeline(List<BsonDocument> mongoDbPipeline)  
- 
Constructor Details
- 
AggregationQuery
public AggregationQuery() 
 - 
 - 
Method Details
- 
create
 - 
withMongoDbPipeline
 - 
apply
Description copied from interface:SerializableFunctionReturns the result of invoking this function on the given input.- Specified by:
 applyin interfaceProcessFunction<MongoCollection<Document>,MongoCursor<Document>> - Specified by:
 applyin interfaceSerializableFunction<MongoCollection<Document>,MongoCursor<Document>> 
 
 -