Package org.apache.pig.parser.PigParserNode

Examples of org.apache.pig.parser.PigParserNode.InvocationPoint


        PigParserNode pnode = (PigParserNode)tree;
        List<InvocationPoint> invStack = pnode.getInvocationStack();
        List<InvocationPoint> newInvStack = (invStack == null) ? new ArrayList<InvocationPoint>()
                : new ArrayList<InvocationPoint>(invStack);

        InvocationPoint pt = new InvocationPoint(line, file, name);
        newInvStack.add(pt);
        setInvocationStack(ast, newInvStack);
       
        // recursively expand the inline macros
        List<CommonTree> inlineNodes = new ArrayList<CommonTree>();
View Full Code Here


        if( line == -1 )
            return "";
       
        StringBuilder sb = new StringBuilder();
        if (node != null) {
            InvocationPoint pt = node.getNextInvocationPoint();
            while (pt != null) {
                sb.append("\n");
                sb.append("at expanding macro '" + pt.getMacro() + "' ("
                        + pt.getFile() + ":" + pt.getLine() + ")");
                pt = node.getNextInvocationPoint();
            }
            sb.append("\n");
        }
        sb.append( "<" );
View Full Code Here

     */
    protected List<String> getMacroList(LogicalRelationalOperator node) {
        List<String> macro = Lists.newArrayList();
        SourceLocation loc = node.getLocation();
        if (loc.node() != null) {
            InvocationPoint p = loc.node().getNextInvocationPoint();
            while (p != null) {
                if (p.getMacro() != null) {
                    macro.add(p.getMacro());
                }
                p = loc.node().getNextInvocationPoint();
            }
        }
        return macro;
View Full Code Here

        PigParserNode pnode = (PigParserNode)tree;
        List<InvocationPoint> invStack = pnode.getInvocationStack();
        List<InvocationPoint> newInvStack = (invStack == null) ? new ArrayList<InvocationPoint>()
                : new ArrayList<InvocationPoint>(invStack);

        InvocationPoint pt = new InvocationPoint(line, file, name);
        newInvStack.add(pt);
        setInvocationStack(ast, newInvStack);
       
        // recursively expand the inline macros
        List<CommonTree> inlineNodes = new ArrayList<CommonTree>();
View Full Code Here

        if( line == -1 )
            return "";
       
        StringBuilder sb = new StringBuilder();
        if (node != null) {
            InvocationPoint pt = node.getNextInvocationPoint();
            while (pt != null) {
                sb.append("\n");
                sb.append("at expanding macro '" + pt.getMacro() + "' ("
                        + pt.getFile() + ":" + pt.getLine() + ")");
                pt = node.getNextInvocationPoint();
            }
            sb.append("\n");
        }
        sb.append( "<" );
View Full Code Here

        PigParserNode pnode = (PigParserNode)tree;
        List<InvocationPoint> invStack = pnode.getInvocationStack();
        List<InvocationPoint> newInvStack = (invStack == null) ? new ArrayList<InvocationPoint>()
                : new ArrayList<InvocationPoint>(invStack);

        InvocationPoint pt = new InvocationPoint(line, file, name);
        newInvStack.add(pt);
        setInvocationStack(ast, newInvStack);
       
        // recursively expand the inline macros
        List<CommonTree> inlineNodes = new ArrayList<CommonTree>();
View Full Code Here

TOP

Related Classes of org.apache.pig.parser.PigParserNode.InvocationPoint

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.