public class CountExtractionComponent extends AbstractGroupExtractionComponent implements TwoStepsExecutingExtractionComponent
_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
|
Iterable<Content> |
computeFirstLevelResults(ExtractionExecutionContext context)
Computes first level results for preparing multiple extraction executions
|
void |
executeFor(ContentHandler contentHandler,
Iterable<Content> firstLevelResults,
ExtractionExecutionContext context)
Execute the extraction of the component for the given first level results
|
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(Iterable<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, getContents, getContentSearcher, getContentTypes, getQueryReferenceId, setQueryReferenceId
execute, executeSubComponents, getSubComponents, getTagName, setTagName
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
getContentTypes, getSubComponents, prepareComponentExecution
public CountExtractionComponent()
protected void processContents(Iterable<Content> contents, ContentHandler contentHandler, ExtractionExecutionContext context) throws Exception
AbstractSolrExtractionComponent
processContents
in class AbstractSolrExtractionComponent
contents
- search resultscontentHandler
- result documentcontext
- component execution contextException
- if an error occurspublic Iterable<Content> computeFirstLevelResults(ExtractionExecutionContext context) throws Exception
TwoStepsExecutingExtractionComponent
computeFirstLevelResults
in interface TwoStepsExecutingExtractionComponent
context
- context of the extraction componentException
- if an error occurspublic void executeFor(ContentHandler contentHandler, Iterable<Content> firstLevelResults, ExtractionExecutionContext context) throws Exception
TwoStepsExecutingExtractionComponent
executeFor
in interface TwoStepsExecutingExtractionComponent
contentHandler
- result documentfirstLevelResults
- A subset of the first level content results previously returned by TwoStepsExecutingExtractionComponent.computeFirstLevelResults(ExtractionExecutionContext)
context
- context of the extraction componentException
- 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