public class FacetsConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
categoryArrayBufferSize |
static int |
DEFAULT_CATEGORY_ARRAY_BUFFER_SIZE |
static boolean |
DEFAULT_ENABLED |
static boolean |
DEFAULT_OPTIMIZED_FOR_EXHAUSTIVE_RANKED_SYNTHESIS |
boolean |
enabled |
java.util.List<Facet> |
facet |
int |
maxHits |
boolean |
optimizedForExhaustiveRankedSynthesis |
Constructor and Description |
---|
FacetsConfig() |
FacetsConfig(FacetsConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this FacetsConfig.
|
static FacetsConfig |
fromString(java.lang.String s)
String representation of this FacetsConfig.
|
int |
getCategoryArrayBufferSize()
Size of the result blocks sent to the searchserver.
This is an optimization parameter. Lower values slightly decrease memory consumption when there is a large number of slices, but increase global CPU consumption. |
java.util.List<Facet> |
getFacet()
Definition of a facet.
|
java.util.Map<java.lang.String,Facet> |
getFacetAsMap()
Get the map of Facet, indexed by id
|
Facet |
getFacetById(java.lang.String _lookup)
Get the Facet for which the id matches _lookup
|
int |
getMaxHits()
Number of hits on which category navigation will be computed.
0 means exhaustive navigation, within the limits of the matched hits. Note: Heapsort executor is used if this setting is defined in ranked mode. |
boolean |
isEnabled()
Enables faceting.
|
boolean |
isOptimizedForExhaustiveRankedSynthesis()
When search is running in "heap" mode, it locally sorts the DIDs before calculating facets.
This decreases significantly LLC miss. |
FacetsConfig |
makeCopy()
Creates and returns a deep copy of this FacetsConfig.
|
static FacetsConfig |
readFrom(java.io.InputStream is)
Read this FacetsConfig from an XML fragment.
|
boolean |
removeFacetById(java.lang.String _lookup)
Removes the Facet for which the id matches _lookup
|
void |
setCategoryArrayBufferSize(int categoryArrayBufferSize)
Size of the result blocks sent to the searchserver.
This is an optimization parameter. Lower values slightly decrease memory consumption when there is a large number of slices, but increase global CPU consumption. |
void |
setEnabled(boolean enabled)
Enables faceting.
|
void |
setMaxHits(int maxHits)
Number of hits on which category navigation will be computed.
0 means exhaustive navigation, within the limits of the matched hits. Note: Heapsort executor is used if this setting is defined in ranked mode. |
void |
setOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
When search is running in "heap" mode, it locally sorts the DIDs before calculating facets.
This decreases significantly LLC miss. |
java.lang.String |
toString()
String representation of this FacetsConfig.
|
FacetsConfig |
withCategoryArrayBufferSize(int categoryArrayBufferSize) |
FacetsConfig |
withCategoryArrayBufferSize(java.lang.Integer categoryArrayBufferSize) |
FacetsConfig |
withEnabled(boolean enabled) |
FacetsConfig |
withEnabled(java.lang.Boolean enabled) |
FacetsConfig |
withFacet(java.util.Collection<Facet> __values) |
FacetsConfig |
withFacet(Facet... __values)
Definition of a facet.
|
FacetsConfig |
withMaxHits(int maxHits) |
FacetsConfig |
withMaxHits(java.lang.Integer maxHits) |
FacetsConfig |
withOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis) |
FacetsConfig |
withOptimizedForExhaustiveRankedSynthesis(java.lang.Boolean optimizedForExhaustiveRankedSynthesis) |
void |
writeTo(java.io.OutputStream os)
Write this FacetsConfig as an XML fragment
|
public java.util.List<Facet> facet
public int maxHits
public boolean enabled
public static final boolean DEFAULT_ENABLED
public boolean optimizedForExhaustiveRankedSynthesis
public static final boolean DEFAULT_OPTIMIZED_FOR_EXHAUSTIVE_RANKED_SYNTHESIS
public int categoryArrayBufferSize
public static final int DEFAULT_CATEGORY_ARRAY_BUFFER_SIZE
public FacetsConfig()
public FacetsConfig(FacetsConfig o)
public java.util.List<Facet> getFacet()
public Facet getFacetById(java.lang.String _lookup)
public java.util.Map<java.lang.String,Facet> getFacetAsMap()
public boolean removeFacetById(java.lang.String _lookup)
public FacetsConfig withFacet(Facet... __values)
public FacetsConfig withFacet(java.util.Collection<Facet> __values)
public void setMaxHits(int maxHits)
public int getMaxHits()
public FacetsConfig withMaxHits(int maxHits)
public FacetsConfig withMaxHits(java.lang.Integer maxHits)
public void setEnabled(boolean enabled)
public boolean isEnabled()
public FacetsConfig withEnabled(boolean enabled)
public FacetsConfig withEnabled(java.lang.Boolean enabled)
public void setOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
public boolean isOptimizedForExhaustiveRankedSynthesis()
public FacetsConfig withOptimizedForExhaustiveRankedSynthesis(boolean optimizedForExhaustiveRankedSynthesis)
public FacetsConfig withOptimizedForExhaustiveRankedSynthesis(java.lang.Boolean optimizedForExhaustiveRankedSynthesis)
public void setCategoryArrayBufferSize(int categoryArrayBufferSize)
public int getCategoryArrayBufferSize()
public FacetsConfig withCategoryArrayBufferSize(int categoryArrayBufferSize)
public FacetsConfig withCategoryArrayBufferSize(java.lang.Integer categoryArrayBufferSize)
public FacetsConfig makeCopy()
public static FacetsConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static FacetsConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.