public class PathFacetHandler extends FacetHandler<FacetDataCache>
FacetHandler.FacetDataNone, FacetHandler.TermCountSize| Modifier and Type | Field and Description |
|---|---|
static String |
SEL_PROP_NAME_DEPTH |
static String |
SEL_PROP_NAME_STRICT |
_name| Constructor and Description |
|---|
PathFacetHandler(String name) |
PathFacetHandler(String name,
boolean multiValue) |
PathFacetHandler(String name,
String indexedName,
boolean multiValue) |
| Modifier and Type | Method and Description |
|---|---|
RandomAccessFilter |
buildRandomAccessAndFilter(String[] vals,
Properties prop) |
RandomAccessFilter |
buildRandomAccessFilter(String value,
Properties props) |
RandomAccessFilter |
buildRandomAccessOrFilter(String[] vals,
Properties prop,
boolean isNot) |
static int |
getDepth(Properties selectionProp)
Gets the depth.
|
DocComparatorSource |
getDocComparatorSource()
builds a comparator to determine how sorting is done
|
FacetCountCollectorSource |
getFacetCountCollectorSource(BrowseSelection sel,
FacetSpec ospec)
Gets a FacetCountCollector
|
String[] |
getFieldValues(BoboIndexReader reader,
int id)
Gets the field value
|
int |
getNumItems(BoboIndexReader reader,
int id) |
Object[] |
getRawFieldValues(BoboIndexReader reader,
int id) |
String |
getSeparator() |
static boolean |
isStrict(Properties selectionProp)
Gets if strict applied for counting.
|
FacetDataCache |
load(BoboIndexReader reader)
Load information from an index reader, initialized by
BoboIndexReader |
static void |
setDepth(Properties props,
int depth)
Sets the depth.
|
void |
setSeparator(String separator) |
static void |
setStrict(Properties props,
boolean strict)
Sets is strict applied for counting.
|
buildFilter, clone, getDependedFacetHandler, getDependsOn, getFacetCountCollectorSource, getFacetData, getFieldValue, getName, getTermCountSize, load, loadFacetData, loadFacetData, merge, putDependedFacetHandler, setTermCountSize, setTermCountSizepublic static final String SEL_PROP_NAME_STRICT
public static final String SEL_PROP_NAME_DEPTH
public PathFacetHandler(String name)
public PathFacetHandler(String name, boolean multiValue)
public static void setStrict(Properties props, boolean strict)
strict - is strict appliedpublic static void setDepth(Properties props, int depth)
depth - depthpublic static boolean isStrict(Properties selectionProp)
public int getNumItems(BoboIndexReader reader, int id)
getNumItems in class FacetHandler<FacetDataCache>public static int getDepth(Properties selectionProp)
public DocComparatorSource getDocComparatorSource()
FacetHandlergetDocComparatorSource in class FacetHandler<FacetDataCache>public String[] getFieldValues(BoboIndexReader reader, int id)
FacetHandlergetFieldValues in class FacetHandler<FacetDataCache>reader - index readerid - docFacetHandler.getFieldValue(BoboIndexReader,int)public Object[] getRawFieldValues(BoboIndexReader reader, int id)
getRawFieldValues in class FacetHandler<FacetDataCache>public void setSeparator(String separator)
public String getSeparator()
public RandomAccessFilter buildRandomAccessFilter(String value, Properties props) throws IOException
buildRandomAccessFilter in class FacetHandler<FacetDataCache>IOExceptionpublic RandomAccessFilter buildRandomAccessAndFilter(String[] vals, Properties prop) throws IOException
buildRandomAccessAndFilter in class FacetHandler<FacetDataCache>IOExceptionpublic RandomAccessFilter buildRandomAccessOrFilter(String[] vals, Properties prop, boolean isNot) throws IOException
buildRandomAccessOrFilter in class FacetHandler<FacetDataCache>IOExceptionpublic FacetCountCollectorSource getFacetCountCollectorSource(BrowseSelection sel, FacetSpec ospec)
FacetHandlergetFacetCountCollectorSource in class FacetHandler<FacetDataCache>sel - selectionospec - facetSpecpublic FacetDataCache load(BoboIndexReader reader) throws IOException
FacetHandlerBoboIndexReaderload in class FacetHandler<FacetDataCache>reader - readerIOExceptionCopyright © 2005–2013. All rights reserved.