Database Reference
In-Depth Information
Reading, Writing, and
Using SQL
In the first chapter, we learned how to prepare a playground for ourselves. Now,
we are ready to use the HBase installation to store and retrieve data and run our
code examples.
In this chapter, we will learn about the following topics:
• Reading data from HBase using Java
• Writing data to HBase using Java
• How to forget about all these complexities and go back to using SQL
Originally, NoSQL was No SQL , as you had to know Java and you could not use
SQL. However, later the developers learned to differentiate that just because you
don't have the ACID-stringent requirements usually associated with SQL, it does not
mean that you cannot have the convenience and know-how of the SQL idiom. Thus,
there appeared multiple NoSQL databases (which by now meant Not Only SQL )
that could understand the familiar SQL language. Cassandra has had Cassandra
Query Language ( CQL ) for quite a while, and now, HBase also has a very smart
implementation of SQL—project Phoenix. This is what we will introduce you to in
this chapter.
Reading ...
Writing ...
and...
USING
SQL !!
Search WWH ::




Custom Search