Class CustomAggregation

  • All Implemented Interfaces:
    org.springframework.data.mongodb.core.aggregation.AggregationOperation

    public class CustomAggregation
    extends java.lang.Object
    implements org.springframework.data.mongodb.core.aggregation.AggregationOperation
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String jsonOperation  
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomAggregation​(java.lang.String jsonOperation)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CustomAggregation custom​(java.lang.String jsonOperation)  
      org.bson.Document toDocument​(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext aggregationOperationContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationOperation

        getOperator, toPipelineStages
    • Field Detail

      • jsonOperation

        private final java.lang.String jsonOperation
    • Constructor Detail

      • CustomAggregation

        public CustomAggregation​(java.lang.String jsonOperation)
    • Method Detail

      • custom

        public static CustomAggregation custom​(java.lang.String jsonOperation)
      • toDocument

        public org.bson.Document toDocument​(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext aggregationOperationContext)
        Specified by:
        toDocument in interface org.springframework.data.mongodb.core.aggregation.AggregationOperation