Examples of GqlDynamicParser


Examples of com.spoledge.audao.parser.gql.impl.GqlDynamicParser

    public Query parseQuery( String gql, Object... params) {
        fo = null;

        try {
            GqlDynamicLexer lexer = new GqlDynamicLexer( new ANTLRStringStream( gql ));
            GqlDynamicParser parser = new GqlDynamicParser( new CommonTokenStream( lexer ));

            Query ret = parser.gql( params );

            fo = FetchOptions.Builder.withOffset( parser.getOffset() != null ? parser.getOffset() : 0);

            if (parser.getLimit() != null) {
                fo = fo.limit( parser.getLimit());
            }

            multipleQueries = parser.wasMultipleQueries();
            keysOnly = parser.wasKeysOnly();

            return ret;
        }
        catch (RecognitionException e) {
            log.error("parseQuery(): " + formatError( gql, e ));
View Full Code Here

Examples of com.spoledge.audao.parser.gql.impl.GqlDynamicParser

    public Query parseQueryCond( Query query, String gql, Object... params) {
        fo = null;

        try {
            GqlDynamicLexer lexer = new GqlDynamicLexer( new ANTLRStringStream( gql ));
            GqlDynamicParser parser = new GqlDynamicParser( new CommonTokenStream( lexer ));

            Query ret = parser.gqlcond( query, params );

            fo = FetchOptions.Builder.withOffset( 0 );

            multipleQueries = parser.wasMultipleQueries();

            return ret;
        }
        catch (RecognitionException e) {
            log.error("parseQueryCond(): " + formatError( gql, e ));
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.