Class Facet


  • public class Facet
    extends 
    Defines a Facet for use in $facet pipeline stages.
    Since:
    3.4
    MongoDB documentation
    Since server release
    • Constructor Detail

      • Facet

        public Facet​( name,
                     <? extends Bson> pipeline)
        Parameters:
        name - the name of this facet
        pipeline - the facet definition pipeline
      • Facet

        public Facet​( name,
                     Bson... pipeline)
        Parameters:
        name - the name of this facet
        pipeline - the facet definition pipeline
    • Method Detail

      • getName

        public  getName()
        Returns:
        the facet name
      • getPipeline

        public <? extends Bson> getPipeline()
        Returns:
        the pipeline definition
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class 
      • toString

        public  toString()
        Overrides:
         in class