use of org.apache.solr.client.solrj.io.stream.metrics.CountMetric in project lucene-solr by apache.
the class StreamExpressionToExpessionTest method testCountMetric.
@Test
public void testCountMetric() throws Exception {
Metric metric;
String expressionString;
// Basic test
metric = new CountMetric(StreamExpressionParser.parse("count(*)"), factory);
expressionString = metric.toExpression(factory).toString();
assertEquals("count(*)", expressionString);
}
Aggregations