摘要
在互联网和大数据时代下,SQL关系型数据库已不能适应与日俱增的数据量,HBase等No SQL数据库变得极为重要。但HBase数据库操作较为复杂,本文设计并实现基于SQL的HBase查询,可以使HBase的使用者通过熟悉的SQL查询语句操作HBase数据库。首先构建SQL语言的编译器,将SQL语句转化成语法树,再将语法树转化为HBase的相关操作。使用协处理器处理SQL查询语句中的聚合函数和复杂表达式,并可以使用连接查询。
In the age of the Internet and big data, SQL relational database can not adapt to the growing amount of data, NoSQL database such as HBase becomes very important. But HBase database operation is more complex, this paper designs and imple- ments a query method of HBase based on SQL, which can enable I-IBase users to operate the HBase database through the familiar SQL query statement. This paper first builds the compiler of SQL language, translates the SQL statement into the syntax tree, and then translates the syntax tree into the operation of HBase. The coprocessor is used to deal with the aggregate functions and com- plex expressions in the SQL query statement.
出处
《计算机与现代化》
2017年第7期20-26,61,共8页
Computer and Modernization
基金
天津市重大科技专项(14ZXDZGX00867
15ZXDSGX00090)
天津市互联网先进制造专项(15ZXHLGX00360
15ZXHLGX00380)