StarTreeRecordImpl implements StarTreeRecord { @Override public DimensionKey getDimensionKey() { return dimensionKey; } StarTreeRecordImpl(StarTreeConfig config,
                            DimensionKey dimensionKey,
                            MetricTimeSeries metricTimeSeries); @Override StarTreeConfig getConfig(); @Override DimensionKey getDimensionKey(); @Override MetricTimeSeries getMetricTimeSeries(); @Override StarTreeRecord relax(String dimensionName); @Override StarTreeRecord relax(Collection<String> dimensionNames); @Override StarTreeRecord aliasOther(String dimensionName); @Override StarTreeRecord aliasOther(Collection<String> otherDimensionNames); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }
@Test public void testUpdateDimensionValues() throws Exception { StarTreeRecordImpl.Builder builder = new StarTreeRecordImpl.Builder() .setDimensionKey(getDimensionKey("A0", "B0", "C0")); builder.updateDimensionKey(getDimensionKey("A0", "B0", "C0")); Assert.assertEquals(builder.getDimensionKey().getDimensionValue(config.getDimensions(), "A"), "A0"); builder.updateDimensionKey(getDimensionKey("A1", "B0", "C0")); Assert.assertEquals(builder.getDimensionKey().getDimensionValue(config.getDimensions(), "A"), StarTreeConstants.STAR); }