public class CharacterCountStep extends AbstractPipelineStep
| Constructor and Description |
|---|
CharacterCountStep() |
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setSourceLocale, setTargetLocalecomponent_done, getParameters, getParameters, getParametersClassName, setParametersexec, setDescription, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParametersprotected void component_init()
component_init in class OkapiComponentpublic String getDescription()
IComponentgetDescription in interface IPipelineStepgetDescription in interface IComponentgetDescription in class Componentpublic String getName()
IComponentgetName in interface IPipelineStepgetName in interface IComponentgetName in class Componentprotected void saveCount(Metrics metrics, CharacterCounter.Counts count)
public CharacterCounter.Counts getBatchCount()
public CharacterCounter.Counts getBatchItemCount()
public CharacterCounter.Counts getDocumentCount()
public CharacterCounter.Counts getSubDocumentCount()
public CharacterCounter.Counts getGroupCount()
protected void saveToMetrics(Event event, CharacterCounter.Counts count)
protected void removeFromMetrics(IWithAnnotations res, String metricName)
protected void removeFromMetrics(TextContainer textContainer, String metricName)
protected void saveToMetrics(TextContainer textContainer, CharacterCounter.Counts count)
protected void saveToMetrics(Segment seg, CharacterCounter.Counts count)
protected Event handleStartBatch(Event event)
AbstractPipelineStepEventType.START_BATCH event.handleStartBatch in class AbstractPipelineStepevent - the event itself.protected Event handleEndBatch(Event event)
AbstractPipelineStepEventType.END_BATCH event.handleEndBatch in class AbstractPipelineStepevent - the event itself.protected Event handleStartBatchItem(Event event)
AbstractPipelineStepEventType.START_BATCH_ITEM event.handleStartBatchItem in class AbstractPipelineStepevent - the event itself.protected Event handleEndBatchItem(Event event)
AbstractPipelineStepEventType.END_BATCH_ITEM event.handleEndBatchItem in class AbstractPipelineStepevent - the event itself.protected Event handleStartDocument(Event event)
AbstractPipelineStepEventType.START_DOCUMENT event.handleStartDocument in class AbstractPipelineStepevent - the event itself.protected Event handleEndDocument(Event event)
AbstractPipelineStepEventType.END_DOCUMENT event.handleEndDocument in class AbstractPipelineStepevent - the event itself.protected Event handleStartSubDocument(Event event)
AbstractPipelineStepEventType.START_SUBDOCUMENT event.handleStartSubDocument in class AbstractPipelineStepevent - the event itself.protected Event handleEndSubDocument(Event event)
AbstractPipelineStepEventType.END_SUBDOCUMENT event.handleEndSubDocument in class AbstractPipelineStepevent - the event itself.protected Event handleStartGroup(Event event)
AbstractPipelineStepEventType.START_GROUP event.handleStartGroup in class AbstractPipelineStepevent - the event itself.protected Event handleEndGroup(Event event)
AbstractPipelineStepEventType.END_GROUP event.handleEndGroup in class AbstractPipelineStepevent - the event itself.protected TextContainer getSource()
protected Event handleTextUnit(Event event)
AbstractPipelineStepEventType.TEXT_UNIT event.handleTextUnit in class AbstractPipelineStepevent - the event itself.Copyright © 2021. All rights reserved.