public class CountExtractionComponent extends AbstractGroupExtractionComponent
_groupingFields
_clauses, _contentTypes, _getQueryFromJSONHelper, _jsonUtils, _queryReferenceId
_contentTypeExtensionPoint, _contentTypesHelper, _subComponents, _tagName, _thesaurusDAO, EXTRACTION_METADATA_PATH_SEPARATOR, JOIN_HIERARCHY_ELEMENT, JOIN_HIERARCHY_SEPARATOR
Constructor and Description |
---|
CountExtractionComponent() |
Modifier and Type | Method and Description |
---|---|
void |
addSubComponent(ExtractionComponent subComponent)
Add sub component
|
Map<String,Object> |
getComponentDetailsForTree()
Retrieves the details of the component for tree
|
protected String |
getDefaultTagName()
Retrieves the default tag name
|
protected String |
getLogsPrefix()
Retrieves the prefix to use in exceptions thrown by this component
|
protected void |
processContents(AmetysObjectIterable<Content> contents,
ContentHandler contentHandler,
ExtractionExecutionContext context)
Process result contents to format the result document
|
protected void |
saxContents(ContentHandler contentHandler,
ExtractionExecutionContext context,
Collection<? extends ResultField> resultFields,
List<Content> contents)
Sax a content
|
addGroupingFields, configure, getGroupingFields, organizeContentsInGroups, prepareComponentExecution, saxGroup, service
_extractGroupExpressionsFromClause, _extractVariableFromClauseExpression, _getClauseQueries, _getMetadataType, addClauses, addContentTypes, computeReferencedQueryInfos, executeComponent, getClauses, getContentSearcher, getContentTypes, getQueryReferenceId, setQueryReferenceId
execute, executeSubComponents, getSubComponents, getTagName, setTagName
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public CountExtractionComponent()
protected void processContents(AmetysObjectIterable<Content> contents, ContentHandler contentHandler, ExtractionExecutionContext context) throws Exception
AbstractSolrExtractionComponent
processContents
in class AbstractSolrExtractionComponent
contents
- search resultscontentHandler
- result documentcontext
- component execution contextException
- if an error occursprotected void saxContents(ContentHandler contentHandler, ExtractionExecutionContext context, Collection<? extends ResultField> resultFields, List<Content> contents) throws Exception
AbstractGroupExtractionComponent
saxContents
in class AbstractGroupExtractionComponent
contentHandler
- result documentcontext
- execution contextresultFields
- result fields to saxcontents
- contents to saxException
- if an error occurspublic void addSubComponent(ExtractionComponent subComponent)
ExtractionComponent
addSubComponent
in interface ExtractionComponent
addSubComponent
in class AbstractExtractionComponent
subComponent
- the sub components to addpublic Map<String,Object> getComponentDetailsForTree()
ExtractionComponent
getComponentDetailsForTree
in interface ExtractionComponent
getComponentDetailsForTree
in class AbstractGroupExtractionComponent
Map
containing component detailsprotected String getDefaultTagName()
AbstractExtractionComponent
getDefaultTagName
in class AbstractExtractionComponent
protected String getLogsPrefix()
AbstractExtractionComponent
getLogsPrefix
in class AbstractExtractionComponent