Package org.kairosdb.client.response.grouping

Examples of org.kairosdb.client.response.grouping.ValueGroupResult


    DefaultGroupResult defaultGroupResults = (DefaultGroupResult) results.get(0).getGroupResults().get(0);
    assertThat(defaultGroupResults.getName(), equalTo("type"));
    assertThat(defaultGroupResults.getType(), equalTo("number"));

    // Value Group
    ValueGroupResult valueGroupResults = (ValueGroupResult) results.get(0).getGroupResults().get(1);
    assertThat(valueGroupResults.getName(), equalTo("value"));
    assertThat(valueGroupResults.getRangeSize(), equalTo(10));
    assertThat(valueGroupResults.getRangeSize(), equalTo(10));
    assertThat(valueGroupResults.getGroup().getGroupNumber(), equalTo(2));

    // Tag Group
    TagGroupResult tagGroupResults = (TagGroupResult) results.get(0).getGroupResults().get(2);
    assertThat(tagGroupResults.getName(), equalTo("tag"));
    assertThat(tagGroupResults.getTags(), hasItems("bucket", "customer", "datacenter"));
View Full Code Here

TOP

Related Classes of org.kairosdb.client.response.grouping.ValueGroupResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.