Package com.metamx.common

Examples of com.metamx.common.Pair


    for (AggregatorFactory aggregatorSpec : aggList) {
      if (dependencySet.contains(aggregatorSpec.getName())) {
        condensedAggs.add(aggregatorSpec);
      }
    }
    return new Pair(condensedAggs, condensedPostAggs);
  }
View Full Code Here


  }

  @Test
  public void testFindServer() throws Exception
  {
    EasyMock.expect(brokerSelector.select(EasyMock.<Query>anyObject())).andReturn(new Pair("hotBroker", selector));
    EasyMock.replay(brokerSelector);

    EasyMock.expect(selector.pick()).andReturn(server).once();
    EasyMock.replay(selector);
View Full Code Here

            ), new FieldAccessPostAggregator(null, "agg2")
        )
    );

    Assert.assertEquals(
        new Pair(Lists.newArrayList(agg1, agg2), Lists.newArrayList(postAgg2)), AggregatorUtil.condensedAggregators(
        Lists.newArrayList(agg1, agg2),
        Lists.newArrayList(postAgg1, postAgg2),
        "postAgg"
    )
    );
View Full Code Here

            ), new FieldAccessPostAggregator(null, "Agg2")
        )
    );

    Assert.assertEquals(
        new Pair(Lists.newArrayList(agg1, agg2), Lists.newArrayList(postAgg2)), AggregatorUtil.condensedAggregators(
        Lists.newArrayList(agg1, agg2),
        Lists.newArrayList(postAgg1, postAgg2),
        "postAgg"
    )
    );
View Full Code Here

TOP

Related Classes of com.metamx.common.Pair

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.