Examples of DimensionType


Examples of mondrian.olap.type.DimensionType

    public DimensionCalc compileDimension(Exp exp) {
        final Type type = exp.getType();
        if (type instanceof HierarchyType) {
            final HierarchyCalc hierarchyCalc = compileHierarchy(exp);
            return new HierarchyDimensionFunDef.CalcImpl(
                new DummyExp(new DimensionType(type.getDimension())),
                hierarchyCalc);
        }
        assert type instanceof DimensionType : type;
        return (DimensionCalc) compile(exp);
    }
View Full Code Here

Examples of mondrian.olap.type.DimensionType

    public DimensionCalc compileDimension(Exp exp) {
        final Type type = exp.getType();
        if (type instanceof HierarchyType) {
            final HierarchyCalc hierarchyCalc = compileHierarchy(exp);
            return new HierarchyDimensionFunDef.CalcImpl(
                new DummyExp(new DimensionType(type.getDimension())),
                hierarchyCalc);
        }
        assert type instanceof DimensionType : type;
        return (DimensionCalc) compile(exp);
    }
View Full Code Here

Examples of net.canarymod.api.world.DimensionType

     *
     * @return the world that was parsed or null if the world didn't exist or wasn't loaded.
     */
    public static World parseWorld(String world) {
        world = world.replace(":", "_"); // some inputs come with a : as separator!
        DimensionType t = DimensionType.fromName(world.substring(Math.max(0, world.lastIndexOf("_"))));
        String nameOnly = world.substring(0, Math.max(0, world.lastIndexOf("_")));
        try {
            if (t != null) {
                return Canary.getServer().getWorldManager().getWorld(nameOnly, t, false);
            }
View Full Code Here

Examples of net.canarymod.api.world.DimensionType

            try {
                double x = Double.parseDouble(args[1]), y = Double.parseDouble(args[2]), z = Double.parseDouble(args[3]);
                if (args.length > 4 && player.hasPermission("canary.command.teleport.self.world")) {
                    try {
                        String dTypeName = args[4].replaceAll("(\\w+)(_(\\w+)$)", "$3");
                        DimensionType dType = DimensionType.fromName(dTypeName);
                        String correctedName = dType == null ? args[4] : args[4].replaceAll("_(\\w+)$", "");
                        if (dType == null) {
                            dType = DimensionType.fromName("NORMAL");
                        }
                        World world = Canary.getServer().getWorldManager().getWorld(correctedName, dType, args.length > 5 && player.hasPermission("canary.command.teleport.self.world.load") ? Boolean.valueOf(args[5]) : false);
View Full Code Here

Examples of org.geoserver.wcs2_0.response.DimensionBean.DimensionType

            // Set the input coverage dimension
            manager.setCoverageDimension(dimension);

            // Set the dimension values type
            final DimensionType dimensionType = dimension.getDimensionType();
            final boolean isRange = dimension.isRange();
            TreeSet<Object> tree = null;
            switch (dimensionType) {
            case TIME:
                tree = new TreeSet(new DateRangeComparator());
View Full Code Here

Examples of org.geoserver.wcs2_0.response.DimensionBean.DimensionType

                    " for the specified coverage " + coverageName + "\n Returning no DimensionBean");
           }
           return null;
        }
        final String dimensionName = descriptor.getName();
        final DimensionType dimensionType = dimensionID.equalsIgnoreCase("TIME") ? DimensionType.TIME : dimensionID.equalsIgnoreCase("ELEVATION") ? DimensionType.ELEVATION : DimensionType.CUSTOM;
        final DimensionInfo info = enabledDimensions.get(dimensionID);
        String units = null;
        String symbol = null;
        if (info != null) {
            units = info.getUnits();
View Full Code Here

Examples of org.geoserver.wcs2_0.response.DimensionBean.DimensionType

     * @param coverageDimension
     */
    public void setCoverageDimensionProperty(Map properties, GridCoverageRequest coverageRequest, DimensionBean coverageDimension) {
        Utilities.ensureNonNull("properties", properties);
        Utilities.ensureNonNull("coverageDimension", coverageDimension);
        final DimensionType dimensionType = coverageDimension.getDimensionType();
        Object value = null;
        switch (dimensionType) {
        case TIME:
            value = coverageRequest.getTemporalSubset();
            break;
View Full Code Here

Examples of org.geoserver.wcs2_0.response.DimensionBean.DimensionType

            return (Array) getDimensionValues().getValues();
        } else {

            // Get Dimension information
            DimensionBean bean = getCoverageDimension();
            DimensionType type = bean.getDimensionType();
            final String dataType = bean.getDatatype();
            boolean isTime = false;
            if (type == DimensionType.TIME || NCUtilities.isATime(dataType)) {
                isTime = true;
            }
View Full Code Here

Examples of org.olap4j.type.DimensionType

    public <T> T accept(ParseTreeVisitor<T> visitor) {
        return visitor.visit(this);
    }

    public Type getType() {
        return new DimensionType(dimension);
    }
View Full Code Here

Examples of org.olap4j.type.DimensionType

                decimalType.getPrecision(),
                decimalType.getScale());
        } else if (type instanceof mondrian.olap.type.DimensionType) {
            mondrian.olap.type.DimensionType dimensionType =
                (mondrian.olap.type.DimensionType) type;
            return new DimensionType(
                toOlap4j(dimensionType.getDimension()));
        } else if (type instanceof mondrian.olap.type.HierarchyType) {
            return new BooleanType();
        } else if (type instanceof mondrian.olap.type.LevelType) {
            return new BooleanType();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.