public abstract class AbstractCategory<T extends AbstractCategory<T>> extends CategoryTreeContainer<T> implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCategory.Field |
static class |
AbstractCategory.FieldsHolder
Store common attributes available for Category and Facet api objects
|
static class |
AbstractCategory.State
A category is always in one of the following three states
|
CategoryTreeContainer.AggregationSortModeASC, CategoryTreeContainer.AggregationSortModeDESC, CategoryTreeContainer.IterationMode, CategoryTreeContainer.SortMode
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,AggregationValue> |
aggregations |
protected long |
count |
static java.lang.String |
DIMENSION_SWITCH |
protected static AbstractCategory.FieldsHolder |
FIELDS |
protected long |
score |
protected AbstractCategory.State |
state |
categories, data, description, id, path
Constructor and Description |
---|
AbstractCategory(java.lang.String id,
java.lang.String path,
java.lang.String description,
long count,
long score,
AbstractCategory.State state,
java.lang.String data)
public AbstractCategory(String id, String path, String description, long count, long score, State state, String data) {
this(id, path, description, count, score, state, data);
}
|
Modifier and Type | Method and Description |
---|---|
void |
addSourceFeed(java.lang.String feedKey)
Add link to another source feed.
|
T |
clone() |
java.util.Map<java.lang.String,AggregationValue> |
getAggregations()
Returns a map of aggregated values for this Category
|
long |
getCount()
Returns the number of Entry in this category
|
com.exalead.access.feedapi.eval.mel.extension.AbstractMELType.FieldsHolder |
getFields() |
long |
getScore()
Returns the score of this category
|
java.util.HashSet<java.lang.String> |
getSourceFeeds()
Get the list of feeds to which this category belongs (the feeds from which all of the
information in this category was merged)
|
AbstractCategory.State |
getState()
Returns the state of the Category (eg: displayed, refined, excluded)
|
abstract boolean |
isRefinable() |
void |
setAggregations(java.util.Map<java.lang.String,AggregationValue> aggregations) |
void |
setCount(long count) |
void |
setScore(long score) |
void |
setState(AbstractCategory.State state) |
addAllCategories, addCategory, clearCategories, getAssociatedValue, getCategories, getCategories, getData, getDeepestRefinedTreeContainer, getDescription, getId, getPath, getRefinedCategories, getRefinedCategories, getRefinedCategories, iterator, iterator, iterator, rawStringValue, setData, setDescription, setId, setPath
accept, collateTo, getFlags, resolveField, resolveOperation, setFlags, stringValue, stringValue, visit, visitBoolean, visitCategory, visitCategory, visitFacet, visitFacet, visitFeed, visitList, visitMeta, visitNumber, visitString, visitUnknown
public static final java.lang.String DIMENSION_SWITCH
protected static final AbstractCategory.FieldsHolder FIELDS
protected long count
protected long score
protected AbstractCategory.State state
protected java.util.Map<java.lang.String,AggregationValue> aggregations
public AbstractCategory(java.lang.String id, java.lang.String path, java.lang.String description, long count, long score, AbstractCategory.State state, java.lang.String data)
public abstract boolean isRefinable()
public final long getCount()
public void setCount(long count)
public final long getScore()
public void setScore(long score)
public final AbstractCategory.State getState()
public void setState(AbstractCategory.State state)
public java.util.Map<java.lang.String,AggregationValue> getAggregations()
public void setAggregations(java.util.Map<java.lang.String,AggregationValue> aggregations)
public void addSourceFeed(java.lang.String feedKey)
feedKey
- public java.util.HashSet<java.lang.String> getSourceFeeds()
public T clone()
clone
in class CategoryTreeContainer<T extends AbstractCategory<T>>
public com.exalead.access.feedapi.eval.mel.extension.AbstractMELType.FieldsHolder getFields()
getFields
in class CategoryTreeContainer<T extends AbstractCategory<T>>
Copyright © 2021 Dassault Systèmes, All Rights Reserved.