Package com.mongodb.client.model
Class Facet
- java.lang.Object
-
- com.mongodb.client.model.Facet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()java.util.List<? extends Bson>getPipeline()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Facet
public Facet(java.lang.String name, java.util.List<? extends Bson> pipeline)- Parameters:
name- the name of this facetpipeline- the facet definition pipeline
-
Facet
public Facet(java.lang.String name, Bson... pipeline)- Parameters:
name- the name of this facetpipeline- the facet definition pipeline
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the facet name
-
getPipeline
public java.util.List<? extends Bson> getPipeline()
- Returns:
- the pipeline definition
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-