ThirdEyeRatioFunction implements ThirdEyeFunction { @Override public String toString() { return String.format("RATIO(%s,%s)", numerator, denominator); } ThirdEyeRatioFunction(List<String> functionMetrics); @Override String toString(); @Override MetricTimeSeries apply(StarTreeConfig config, ThirdEyeQuery query, MetricTimeSeries timeSeries);  }
@Test public void testToString() { ThirdEyeFunction function = new ThirdEyeRatioFunction(ImmutableList.of("N", "D")); Assert.assertEquals(function.toString(), "RATIO(N,D)"); }