public abstract class BaseCountStep
extends net.sf.okapi.lib.extra.steps.AbstractPipelineStep
| Constructor and Description |
|---|
BaseCountStep() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
component_init() |
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, 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 net.sf.okapi.lib.extra.OkapiComponentpublic abstract String getName()
getName in interface IPipelineStepgetName in interface net.sf.okapi.lib.extra.IComponentgetName in class net.sf.okapi.lib.extra.Componentpublic abstract String getDescription()
getDescription in interface IPipelineStepgetDescription in interface net.sf.okapi.lib.extra.IComponentgetDescription in class net.sf.okapi.lib.extra.Componentpublic 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 net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleEndBatch(Event event)
handleEndBatch in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleStartBatchItem(Event event)
handleStartBatchItem in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleEndBatchItem(Event event)
handleEndBatchItem in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleStartDocument(Event event)
handleStartDocument in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleEndDocument(Event event)
handleEndDocument in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleStartSubDocument(Event event)
handleStartSubDocument in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleEndSubDocument(Event event)
handleEndSubDocument in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleStartGroup(Event event)
handleStartGroup in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected Event handleEndGroup(Event event)
handleEndGroup in class net.sf.okapi.lib.extra.steps.AbstractPipelineStepprotected TextContainer getSource()
Copyright © 2021. All rights reserved.