public abstract class BaseCountStep extends BasePipelineStep
| Constructor and Description |
|---|
BaseCountStep() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
count(Segment segment,
LocaleId locale) |
protected abstract long |
count(TextContainer textContainer,
LocaleId locale) |
protected abstract long |
countInTextUnit(ITextUnit textUnit) |
protected abstract boolean |
countOnlyTranslatable() |
long |
getBatchCount() |
long |
getBatchItemCount() |
abstract String |
getDescription() |
long |
getDocumentCount() |
long |
getGroupCount() |
abstract String |
getMetric() |
abstract String |
getName() |
protected TextContainer |
getSource() |
long |
getSubDocumentCount() |
protected Event |
handleEndBatch(Event event) |
protected Event |
handleEndBatchItem(Event event) |
protected Event |
handleEndDocument(Event event) |
protected Event |
handleEndGroup(Event event) |
protected Event |
handleEndSubDocument(Event event) |
protected Event |
handleStartBatch(Event event) |
protected Event |
handleStartBatchItem(Event event) |
protected Event |
handleStartDocument(Event event) |
protected Event |
handleStartGroup(Event event) |
protected Event |
handleStartSubDocument(Event event) |
protected Event |
handleTextUnit(Event event) |
protected void |
removeFromMetrics(IWithAnnotations res,
String metricName) |
protected void |
removeFromMetrics(Segment seg,
String metricName) |
protected void |
removeFromMetrics(TextContainer textContainer,
String metricName) |
protected void |
saveCount(Metrics metrics,
long count) |
protected void |
saveToMetrics(Event event,
long count) |
protected void |
saveToMetrics(Segment seg,
long count) |
protected void |
saveToMetrics(TextContainer textContainer,
long count) |
cancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocalepublic abstract String getName()
public abstract String getDescription()
public abstract String getMetric()
protected abstract long count(TextContainer textContainer, LocaleId locale)
protected abstract long countInTextUnit(ITextUnit textUnit)
protected abstract boolean countOnlyTranslatable()
protected void saveCount(Metrics metrics, long count)
public long getBatchCount()
public long getBatchItemCount()
public long getDocumentCount()
public long getSubDocumentCount()
public long getGroupCount()
protected void saveToMetrics(Event event, long count)
protected void removeFromMetrics(IWithAnnotations res, String metricName)
protected void removeFromMetrics(TextContainer textContainer, String metricName)
protected void saveToMetrics(TextContainer textContainer, long count)
protected void saveToMetrics(Segment seg, long count)
protected Event handleStartBatch(Event event)
handleStartBatch in class BasePipelineStepprotected Event handleEndBatch(Event event)
handleEndBatch in class BasePipelineStepprotected Event handleStartBatchItem(Event event)
handleStartBatchItem in class BasePipelineStepprotected Event handleEndBatchItem(Event event)
handleEndBatchItem in class BasePipelineStepprotected Event handleStartDocument(Event event)
handleStartDocument in class BasePipelineStepprotected Event handleEndDocument(Event event)
handleEndDocument in class BasePipelineStepprotected Event handleStartSubDocument(Event event)
handleStartSubDocument in class BasePipelineStepprotected Event handleEndSubDocument(Event event)
handleEndSubDocument in class BasePipelineStepprotected Event handleStartGroup(Event event)
handleStartGroup in class BasePipelineStepprotected Event handleEndGroup(Event event)
handleEndGroup in class BasePipelineStepprotected TextContainer getSource()
protected Event handleTextUnit(Event event)
handleTextUnit in class BasePipelineStepCopyright © 2021. All rights reserved.