public abstract class BaseCounter extends Object
| Constructor and Description |
|---|
BaseCounter() |
| Modifier and Type | Method and Description |
|---|---|
long |
doCount(Object text,
LocaleId language) |
protected abstract long |
doCountImpl(String text,
LocaleId language) |
long |
doGetCount(IWithAnnotations res) |
long |
doGetCount(Segment segment) |
long |
doGetCount(TextContainer tc) |
static long |
getCount(IWithAnnotations res,
String metricName) |
static long |
getCount(Segment segment,
String metricName) |
static long |
getCount(TextContainer tc,
String metricName) |
protected abstract String |
getMetricNameForRetrieval() |
protected abstract String getMetricNameForRetrieval()
public long doGetCount(Segment segment)
public static long getCount(TextContainer tc, String metricName)
public long doGetCount(TextContainer tc)
public static long getCount(IWithAnnotations res, String metricName)
public long doGetCount(IWithAnnotations res)
Copyright © 2021. All rights reserved.