MongoAggregationPipeline¶
class MongoAggregationPipeline<Output : Any> : AbstractPipeline<Output> , AggregationPipeline<Output> , LazyMongoIterable<Output>
Properties¶
chain¶
@LowLevelApi
val chain: PipelineChainLink
context¶
@LowLevelApi
open override val context: BsonContext
Functions¶
asIterable¶
open override fun asIterable(documentType: Class<Output>): MongoIterable<Output>
asIterable¶
inline fun <Document : Any> LazyMongoIterable<Document>.asIterable(): MongoIterable<Document>
countTo¶
embedInUnionWith¶
@LowLevelApi
open override fun embedInUnionWith(writer: BsonFieldWriter)
first¶
firstOrNull¶
inline fun <Document : Any> LazyMongoIterable<Document>.firstOrNull(): Document?
forEach¶
group¶
limit¶
open override fun limit(amount: Long): MongoAggregationPipeline<Output>
open override fun limit(amount: Int): MongoAggregationPipeline<Output>
match¶
open override fun match(filter: FilterQuery<Output>.() -> Unit): MongoAggregationPipeline<Output>
project¶
open override fun project(block: ProjectStageOperators<Output>.() -> Unit): MongoAggregationPipeline<Output>
reinterpret¶
@LowLevelApi
@DangerousMongoApi
open override fun <New : Any> reinterpret(): MongoAggregationPipeline<New>
sample¶
open override fun sample(size: Int): MongoAggregationPipeline<Output>
set¶
open override fun set(block: SetStageOperators<Output>.() -> Unit): MongoAggregationPipeline<Output>
skip¶
open override fun skip(amount: Long): MongoAggregationPipeline<Output>
open override fun skip(amount: Int): MongoAggregationPipeline<Output>
sort¶
open override fun sort(block: SortOptionDsl<Output>.() -> Unit): MongoAggregationPipeline<Output>
toList¶
toSet¶
toString¶
unionWith¶
open override fun unionWith(other: HasUnionWithCompatibility<Output>): MongoAggregationPipeline<Output>
unset¶
open override fun unset(block: UnsetStageOperators<Output>.() -> Unit): MongoAggregationPipeline<Output>
withStage¶
@LowLevelApi
@DangerousMongoApi
open override fun withStage(stage: BsonNode): MongoAggregationPipeline<Output>
writeTo¶
@LowLevelApi
override fun writeTo(writer: BsonValueWriter)