Package fm.last.darling.nspace

Examples of fm.last.darling.nspace.Dimension


    File yaml = new File(testDataFolder, "dataset.yaml");
    List<List<Dimension>> ret = Util.readRequestedProjections(yaml);

    List<List<Dimension>> expected = new ArrayList<List<Dimension>>();
    List<Dimension> projection0 = new ArrayList<Dimension>();
    projection0.add(new Dimension("country"));
    expected.add(projection0);
    List<Dimension> projection1 = new ArrayList<Dimension>();
    projection1.add(new Dimension("country"));
    projection1.add(new Dimension("service"));
    expected.add(projection1);

    assertEquals(ret.size(), expected.size());
    for (int i = 0; i < ret.size(); i++)
      assertEquals(ret.get(i).toString(), expected.get(i).toString());
View Full Code Here


    for (String projectionName : projections) {
      String[] dimensionNames = projectionName.split("-");
      List<Dimension> dimensions = new ArrayList<Dimension>();
     
      for (String dimension : dimensionNames) {
        dimensions.add(new Dimension(dimension));
      }
     
      result.add(dimensions);
    }
   
View Full Code Here

TOP

Related Classes of fm.last.darling.nspace.Dimension

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.