Package org.apache.hadoop.hbase.hbql.mapping

Examples of org.apache.hadoop.hbase.hbql.mapping.Mapping


    private String getIndexName() {
        return this.indexName;
    }

    protected ExecutionResults execute(final HConnectionImpl conn) throws HBqlException {
        final Mapping mapping = conn.getMapping(this.getMappingContext().getMappingName());
        return DescribeIndexForTableStatement.executeDescribe(conn, this.getIndexName(), mapping.getTableName());
    }
View Full Code Here


    }

    public static ExpressionTree getExpressionTree(final String str,
                                                   final MappingContext mappingContext) throws HBqlException,
                                                                                               RecognitionException {
        final Mapping mapping = mappingContext.getMapping();

        final Map<String, ExpressionTree> map = mapping.getEvalMap();
        ExpressionTree expressionTree = map.get(str);

        if (expressionTree == null) {
            final HBqlParser parser = ParserUtil.newHBqlParser(str);
            expressionTree = parser.nodescWhereExpr();
            expressionTree.setMappingContext(mappingContext);
            mapping.addToExpressionTreeCache(str, expressionTree);
        }
        else {
            expressionTree.reset();
        }
        return expressionTree;
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.hbql.mapping.Mapping

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.