Package org.olap4j

Examples of org.olap4j.OlapException$Region


            encodeTileContents(folder, layer, "contents", zoomLevel, top);
        }
    }

    void addRegion(Feature container, Envelope box, int minLodPixels, int maxLodPixels) {
        Region region = container.createAndSetRegion();
        Lod lod = region.createAndSetLod();
        lod.setMinLodPixels(minLodPixels);
        lod.setMaxLodPixels(maxLodPixels);
        LatLonAltBox llaBox = region.createAndSetLatLonAltBox();
        setEnvelope(box, llaBox);
    }
View Full Code Here


    {
        Collection regions = this.metaObject.getRegions();
        Collection transitions = new LinkedList();
        for (Iterator it = regions.iterator(); it.hasNext();)
        {
            Region region = (Region)it.next();
            transitions.addAll(region.getTransitions());
        }
        return transitions;
    }
View Full Code Here

    {
        Collection regions = this.metaObject.getRegions();
        Collection subvertices = new LinkedList();
        for (Iterator it = regions.iterator(); it.hasNext();)
        {
            Region region = (Region)it.next();
            subvertices.addAll(region.getSubvertices());
        }
        return this.filter(
            subvertices,
            collectionFilter);
    }
View Full Code Here

    {
        assert order != null;
        assert nameParts != null;
        Member member = query.getCube().lookupMember(nameParts);
        if (member == null) {
            throw new OlapException("Cannot find member.");
        }
        sort(order, member);
    }
View Full Code Here

        Selection.Operator operator,
        List<IdentifierSegment> nameParts) throws OlapException
    {
        Member member = this.getQuery().getCube().lookupMember(nameParts);
        if (member == null) {
            throw new OlapException(
                "Unable to find a member with name " + nameParts);
        }
        return this.include(
            operator,
            member);
View Full Code Here

        Selection.Operator operator,
        List<IdentifierSegment> nameParts) throws OlapException
    {
        Member member = this.getQuery().getCube().lookupMember(nameParts);
        if (member == null) {
            throw new OlapException(
                "Unable to find a member with name " + nameParts);
        }
        return this.createSelection(
            operator,
            member);
View Full Code Here

        Selection.Operator operator,
        List<IdentifierSegment> nameParts) throws OlapException
    {
        Member rootMember = this.getQuery().getCube().lookupMember(nameParts);
        if (rootMember == null) {
            throw new OlapException(
                "Unable to find a member with name " + nameParts);
        }
        this.exclude(
            operator,
            rootMember);
View Full Code Here

            break;
        case MEMBER:
            op = Member.TreeOp.SELF;
            break;
        default:
            throw new OlapException(
                "Operation not supported: " + selection.getOperator());
        }
        Set<Member.TreeOp> set = new TreeSet<Member.TreeOp>();
        set.add(op);
        if (secondOp != null) {
            set.add(secondOp);
        }
        try {
            return
                query.getCube().lookupMembers(
                    set,
                    IdentifierParser.parseIdentifier(
                        selection.getUniqueName()));
        } catch (Exception e) {
            throw new OlapException(
                "Error while resolving selection " + selection.toString(),
                e);
        }
    }
View Full Code Here

* @version $Id: XmlaHelper.java 315 2010-05-29 00:56:11Z jhyde $
*/
public class XmlaHelper {

    public OlapException createException(String msg) {
        return new OlapException(msg);
    }
View Full Code Here

    public OlapException createException(String msg) {
        return new OlapException(msg);
    }

    public OlapException createException(Throwable cause) {
        return new OlapException(cause.getMessage(), cause);
    }
View Full Code Here

TOP

Related Classes of org.olap4j.OlapException$Region

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.