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.Serializable
A filter for applying the result of aFacetBucket
to a query.Use
FacetResponse.getFacetFilter(FacetBucket)
to create aFacetFilter
for 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 FacetFilter
clone()
boolean
equals(java.lang.Object other)
Query
getFilter()
Get the filter query.java.lang.String
getLabel()
Get a descriptive label for this filter.java.lang.String
getName()
Get the name of the facet that generated this filter.int
hashCode()
void
setFilter(Query value)
Get the filter query.void
setLabel(java.lang.String value)
Set a descriptive label for this filter.void
setName(java.lang.String value)
Set the name of the facet that generated this filter.java.lang.String
toString()
static FacetFilter
valueOf(java.lang.Object value)
Parse a FacetFilter specified invalue
.static FacetFilter
valueOf(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 value
of 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 value
of 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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
clone
public FacetFilter clone()
- Overrides:
clone
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
.
-
-