Package com.facebook.presto.sql.tree

Examples of com.facebook.presto.sql.tree.UseCollection


    }

    static ClientSession processSessionParameterChange(Object parsedStatement, ClientSession session)
    {
        if (parsedStatement instanceof UseCollection) {
            UseCollection use = (UseCollection) parsedStatement;
            switch (use.getType()) {
                case CATALOG:
                    return ClientSession.withCatalog(session, use.getCollection());
                case SCHEMA:
                    return ClientSession.withSchema(session, use.getCollection());
            }
        }
        return session;
    }
View Full Code Here


    }

    static ClientSession processSessionParameterChange(Object parsedStatement, ClientSession session)
    {
        if (parsedStatement instanceof UseCollection) {
            UseCollection useCollection = (UseCollection) parsedStatement;
            if (useCollection.getType() == UseCollection.CollectionType.CATALOG) {
                return ClientSession.withCatalog(session, useCollection.getCollection());
            }
            else if (useCollection.getType() == UseCollection.CollectionType.SCHEMA) {
                return ClientSession.withSchema(session, useCollection.getCollection());
            }
        }
        return session;
    }
View Full Code Here

    }

    static ClientSession processSessionParameterChange(Object parsedStatement, ClientSession session)
    {
        if (parsedStatement instanceof UseCollection) {
            UseCollection use = (UseCollection) parsedStatement;
            switch (use.getType()) {
                case CATALOG:
                    return ClientSession.withCatalog(session, use.getCollection());
                case SCHEMA:
                    return ClientSession.withSchema(session, use.getCollection());
            }
        }
        return session;
    }
View Full Code Here

    }

    static ClientSession processSessionParameterChange(Object parsedStatement, ClientSession session)
    {
        if (parsedStatement instanceof UseCollection) {
            UseCollection use = (UseCollection) parsedStatement;
            switch (use.getType()) {
                case CATALOG:
                    return ClientSession.withCatalog(session, use.getCollection());
                case SCHEMA:
                    return ClientSession.withSchema(session, use.getCollection());
            }
        }
        return session;
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.sql.tree.UseCollection

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.