Package com.attivio.sdk.search.facet
Class FacetFilter
- java.lang.Object
-
- com.attivio.sdk.search.facet.FacetFilter
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class FacetFilter extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableA filter for applying the result of aFacetBucketto a query.Use
FacetResponse.getFacetFilter(FacetBucket)to create aFacetFilterfor drilldown.- See Also:
FacetBucket,FacetResponse, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FacetFilter()FacetFilter(java.lang.String name, java.lang.String label, Query filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetFilterclone()booleanequals(java.lang.Object other)QuerygetFilter()Get the filter query.java.lang.StringgetLabel()Get a descriptive label for this filter.java.lang.StringgetName()Get the name of the facet that generated this filter.inthashCode()voidsetFilter(Query value)Get the filter query.voidsetLabel(java.lang.String value)Set a descriptive label for this filter.voidsetName(java.lang.String value)Set the name of the facet that generated this filter.java.lang.StringtoString()static FacetFiltervalueOf(java.lang.Object value)Parse a FacetFilter specified invalue.static FacetFiltervalueOf(java.lang.String value)Parse a FacetFilter specified invalue.
-
-
-
Constructor Detail
-
FacetFilter
public FacetFilter()
-
FacetFilter
public FacetFilter(java.lang.String name, java.lang.String label, Query filter)
-
-
Method Detail
-
getName
@JsonPropertyDescription("The name of the facet selected for filtering") public java.lang.String getName()Get the name of the facet that generated this filter.
-
setName
public void setName(java.lang.String value)
Set the name of the facet that generated this filter.
-
getLabel
@JsonPropertyDescription("The label for the bucket selected for filtering") public java.lang.String getLabel()Get a descriptive label for this filter.This will typically be the
display valueof the bucket used for filtering.
-
setLabel
public void setLabel(java.lang.String value)
Set a descriptive label for this filter.This will typically be the
display valueof the bucket used for filtering.
-
getFilter
@JsonPropertyDescription("The filter for the bucket selected for filtering (in advanced query syntax)") public Query getFilter()Get the filter query.
-
setFilter
public void setFilter(Query value)
Get the filter query.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
clone
public FacetFilter clone()
- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueOf
public static FacetFilter valueOf(java.lang.Object value)
Parse a FacetFilter specified invalue.
-
valueOf
public static FacetFilter valueOf(java.lang.String value)
Parse a FacetFilter specified invalue.
-
-