Package ch.epfl.lbd.database.providers.mondrian.olap

Examples of ch.epfl.lbd.database.providers.mondrian.olap.MondrianLevelProperty


  public static final long serialVersionUID = 0x98344342;
 
  public SpaceDimension(RelationalTable table){
    super("Space",null);
    Level environmentLvl = new MondrianLevel("Environment",table,"environment_name");
    LevelProperty envNameProp = new MondrianLevelProperty"Environment Name",
                                LevelProperty.TYPE_STRING,
                                table,
                                "environment_name");
    environmentLvl.addProperty(envNameProp);
    LevelProperty envGeomProp = new MondrianLevelProperty"geom",
                                LevelProperty.TYPE_GEOMETRY,
                                table,
                                "environment_geom");
    environmentLvl.addProperty(envGeomProp);
   
    Level regionLvl = new MondrianLevel("Region",table,"region_name");
    LevelProperty regNameProp = new MondrianLevelProperty"Region Name",
                                LevelProperty.TYPE_STRING,
                                table,
                                "region_name");
    regionLvl.addProperty(regNameProp);
    LevelProperty regGeomProp = new MondrianLevelProperty"geom",
                                LevelProperty.TYPE_GEOMETRY,
                                table,
                                "region_geom");
    regionLvl.addProperty(regGeomProp);
   
    Level areaLvl = new MondrianLevel("Area",table,"area_name");
    LevelProperty areaNameProp = new MondrianLevelProperty"Area Name",
                                LevelProperty.TYPE_STRING,
                                table,
                                "area_name");
    areaLvl.addProperty(areaNameProp);
    LevelProperty areaGeomProp = new MondrianLevelProperty"geom",
                                LevelProperty.TYPE_GEOMETRY,
                                table,
                                "area_geom");
    areaLvl.addProperty(areaGeomProp);
   
View Full Code Here


      episodeFacts.loadObject(connection);
     
      //define the space dimension
     
      Level environmentLvl = new MondrianLevel("Environment",spaceDimension,"environment_name");
      LevelProperty envNameProp = new MondrianLevelProperty"Environment Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "environment_name");
      environmentLvl.addProperty(envNameProp);
      LevelProperty envGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "environment_geom");
      environmentLvl.addProperty(envGeomProp);
     
      Level regionLvl = new MondrianLevel("Region",spaceDimension,"region_name");
      LevelProperty regNameProp = new MondrianLevelProperty"Region Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "region_name");
      regionLvl.addProperty(regNameProp);
      LevelProperty regGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "region_geom");
      regionLvl.addProperty(regGeomProp);
     
      Level areaLvl = new MondrianLevel("Area",spaceDimension,"area_name");
      LevelProperty areaNameProp = new MondrianLevelProperty"Area Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "area_name");
      areaLvl.addProperty(areaNameProp);
      LevelProperty areaGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "area_geom");
      areaLvl.addProperty(areaGeomProp);
     
View Full Code Here

      RelationalTable timeDimension = new RelationalTable("trdw_time_dimension");
     
      timeDimension.loadObject(connection);
     
      Level yearLevel = new MondrianLevel("Year",timeDimension,"year");
      LevelProperty timeStamp = new MondrianLevelProperty("TimeStamp",LevelProperty.TYPE_TIMESTAMP,timeDimension,"timestamp");
      yearLevel.addProperty(timeStamp);
     
      Hierarchy timeHier = new MondrianHierarchy("timeHier",timeDimension);
     
      Dimension timeDim = new MondrianDimension("Time",timeHier);
View Full Code Here

      episodeFacts.loadObject(connection);
     
      //define the space dimension
     
      Level environmentLvl = new MondrianLevel("Environment",spaceDimension,"environment_name");
      LevelProperty envNameProp = new MondrianLevelProperty"Environment Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "environment_name");
      environmentLvl.addProperty(envNameProp);
      LevelProperty envGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "environment_geom");
      environmentLvl.addProperty(envGeomProp);
     
      Level regionLvl = new MondrianLevel("Region",spaceDimension,"region_name");
      LevelProperty regNameProp = new MondrianLevelProperty"Region Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "region_name");
      regionLvl.addProperty(regNameProp);
      LevelProperty regGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "region_geom");
      regionLvl.addProperty(regGeomProp);
     
      Level areaLvl = new MondrianLevel("Area",spaceDimension,"area_name");
      LevelProperty areaNameProp = new MondrianLevelProperty"Area Name",
                                  LevelProperty.TYPE_STRING,
                                  spaceDimension,
                                  "area_name");
      areaLvl.addProperty(areaNameProp);
      LevelProperty areaGeomProp = new MondrianLevelProperty"geom",
                                  LevelProperty.TYPE_GEOMETRY,
                                  spaceDimension,
                                  "area_geom");
      areaLvl.addProperty(areaGeomProp);
     
View Full Code Here

TOP

Related Classes of ch.epfl.lbd.database.providers.mondrian.olap.MondrianLevelProperty

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.