public class WordCountStep extends TokenCountStep
| Constructor and Description |
|---|
WordCountStep() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
count(Segment segment,
LocaleId locale) |
protected long |
count(TextContainer textContainer,
LocaleId locale) |
protected boolean |
countOnlyTranslatable() |
String |
getDescription()
Gets the description of this component.
|
String |
getMetric() |
String |
getName()
Gets the name of this component.
|
protected String[] |
getTokenNames() |
countInTextUnit, filterTokens, getTokens, getTokenscomponent_init, getBatchCount, getBatchItemCount, getDocumentCount, getGroupCount, getSource, getSubDocumentCount, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleTextUnit, removeFromMetrics, removeFromMetrics, removeFromMetrics, saveCount, saveToMetrics, saveToMetrics, saveToMetricscancel, 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, setParameterspublic static final String METRIC
public String getMetric()
getMetric in class BaseCountStepprotected String[] getTokenNames()
getTokenNames in class TokenCountStepprotected boolean countOnlyTranslatable()
countOnlyTranslatable in class BaseCountSteppublic String getDescription()
IComponentgetDescription in interface IPipelineStepgetDescription in interface IComponentgetDescription in class BaseCountSteppublic String getName()
IComponentgetName in interface IPipelineStepgetName in interface IComponentgetName in class BaseCountStepprotected long count(Segment segment, LocaleId locale)
count in class TokenCountStepprotected long count(TextContainer textContainer, LocaleId locale)
count in class TokenCountStepCopyright © 2021. All rights reserved.