Package java.util

Examples of java.util.List


            semiJoin.setProperty(NodeConstants.Info.LEFT_EXPRESSIONS, plannedResult.leftExpressions);
            semiJoin.setProperty(NodeConstants.Info.RIGHT_EXPRESSIONS, plannedResult.rightExpressions);
            semiJoin.setProperty(NodeConstants.Info.SORT_RIGHT, SortOption.ALREADY_SORTED);
            semiJoin.setProperty(NodeConstants.Info.OUTPUT_COLS, root.getProperty(NodeConstants.Info.OUTPUT_COLS));
           
            List childOutput = (List)current.getFirstChild().getProperty(NodeConstants.Info.OUTPUT_COLS);
            PlanNode toCorrect = root;
            while (toCorrect != current) {
              toCorrect.setProperty(NodeConstants.Info.OUTPUT_COLS, childOutput);
              toCorrect = toCorrect.getFirstChild();
            }
View Full Code Here


        es1.setType(DataTypeManager.DefaultDataClasses.INTEGER);
       
        ElementSymbol es2 = new ElementSymbol("e2"); //$NON-NLS-1$
        es2.setType(DataTypeManager.DefaultDataClasses.INTEGER);
       
        List leftElements = new ArrayList();
        leftElements.add(es1);
        leftNode = new FakeRelationalNode(1, leftTuples);
        leftNode.setElements(leftElements);
       
        List rightElements = new ArrayList();
        rightElements.add(es2);
        rightNode = new FakeRelationalNode(2, rightTuples);
        rightNode.setElements(rightElements);
       
        List joinElements = new ArrayList();
        joinElements.add(es1);
        joinElements.add(es2);
       
        join = new JoinNode(3);
        joinStrategy = new NestedLoopJoinStrategy();
      join.setJoinStrategy(joinStrategy);
        join.setElements(joinElements);
View Full Code Here

        FakeDataManager dataMgr = new FakeDataManager();
   
        try {
            // Group stock.items
            FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
            List elementIDs = metadata.getElementIDsInGroupID(groupID);
            List elementSymbols = createElements(elementIDs);
       
            dataMgr.registerTuples(
                groupID,
                elementSymbols,
               
View Full Code Here

        FakeDataManager dataMgr = new FakeDataManager();
   
        try {
            // Group stock.items
            FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
            List elementIDs = metadata.getElementIDsInGroupID(groupID);
            List elementSymbols = createElements(elementIDs);
       
            dataMgr.registerTuples(
                groupID,
                elementSymbols,
               
View Full Code Here

        FakeDataManager dataMgr = new FakeDataManager();
   
        try {
            // Group stock.items
            FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
            List elementIDs = metadata.getElementIDsInGroupID(groupID);
            List elementSymbols = createElements(elementIDs);
       
            dataMgr.registerTuples(
                groupID,
                elementSymbols,
               
View Full Code Here

        boolean treeChanged = false;
        boolean removeCopiedFlag = false;
        boolean pushRuleRaiseNull = false;
       
        for (PlanNode node : NodeEditor.findAllNodes(plan, NodeConstants.Types.JOIN)) {
            List criteria = (List)node.getProperty(NodeConstants.Info.JOIN_CRITERIA);
                       
            JoinType joinType = (JoinType)node.getProperty(NodeConstants.Info.JOIN_TYPE);
           
            //criteria cannot be pushed out of a full outer join clause
            if (joinType == JoinType.JOIN_FULL_OUTER || joinType == JoinType.JOIN_CROSS) {
                continue;
            }
           
            Iterator crits = criteria.iterator();
            while (crits.hasNext()) {
                Criteria crit = (Criteria)crits.next();
                               
                //special case handling for true/false criteria
                if (crit.equals(QueryRewriter.FALSE_CRITERIA) || crit.equals(QueryRewriter.UNKNOWN_CRITERIA)) {
                    if (joinType == JoinType.JOIN_INNER) {
                        FrameUtil.replaceWithNullNode(node);
                    } else {
                        //must be a left or right outer join, replace the inner side with null 
                        FrameUtil.replaceWithNullNode(JoinUtil.getInnerSideJoinNodes(node)[0]);
                        removeCopiedFlag = true;
                    }
                    //since a null node has been created, raise it to its highest point
                    pushRuleRaiseNull = true;
                    treeChanged = true;
                    break;
                } else if (crit.equals(QueryRewriter.TRUE_CRITERIA)) {
                    crits.remove();
                    break;
                }
               
                if (pushCriteria(node, crit)) {
                    treeChanged = true;
                    crits.remove();
                }
            }
           
            //degrade the join if there is no criteria left
            if (criteria.isEmpty() && joinType == JoinType.JOIN_INNER) {
                node.setProperty(NodeConstants.Info.JOIN_TYPE, JoinType.JOIN_CROSS);
                treeChanged = true;
            }
            
            if (removeCopiedFlag) {
View Full Code Here

    FakeDataManager dataMgr = new FakeDataManager();
   
    try {
      // Group stock.items
      FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
      List elementIDs = metadata.getElementIDsInGroupID(groupID);
      List elementSymbols = createElements(elementIDs);
       
      dataMgr.registerTuples(
        groupID,
        elementSymbols,
               
View Full Code Here

    FakeDataManager dataMgr = new FakeDataManager();
   
    try {
      // Group stock.items
      FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
      List elementIDs = metadata.getElementIDsInGroupID(groupID);
      List elementSymbols = createElements(elementIDs);
       
      dataMgr.registerTuples(
        groupID,
        elementSymbols,
               
View Full Code Here

        FakeDataManager dataMgr = new FakeDataManager();
   
        try {
            // Group stock.items
            FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("stock.items"); //$NON-NLS-1$
            List elementIDs = metadata.getElementIDsInGroupID(groupID);
            List elementSymbols = createElements(elementIDs);

            dataMgr.registerTuples(
                groupID,
                elementSymbols,
               
View Full Code Here

    public static FakeDataManager exampleXQTDataManager(FakeMetadataFacade metadata) throws Exception {
        FakeDataManager dataMgr = new FakeDataManager();
   
        // Group stock.items
        FakeMetadataObject groupID = (FakeMetadataObject) metadata.getGroupID("xqt.data"); //$NON-NLS-1$
        List elementIDs = metadata.getElementIDsInGroupID(groupID);
        List xqtData = createElements(elementIDs);
   
        dataMgr.registerTuples(
            groupID,
            xqtData,
           
View Full Code Here

TOP

Related Classes of java.util.List

Copyright © 2015 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.