Skip to Content
HBase: The Definitive Guide
book

HBase: The Definitive Guide

by Lars George
September 2011
Intermediate to advanced content levelIntermediate to advanced
552 pages
16h 31m
English
O'Reilly Media, Inc.
Content preview from HBase: The Definitive Guide

Chapter 5. Client API: Administrative Features

Apart from the client API used to deal with data manipulation features, HBase also exposes a data definition-like API. This is similar to the separation into DDL and DML found in RDBMSes. First we will look at the classes required to define the data schemas and subsequently see the API that makes use of it to, for example, create a new HBase table.

Schema Definition

Creating a table in HBase implicitly involves the definition of a table schema, as well as the schemas for all contained column families. They define the pertinent characteristics of how—and when—the data inside the table and columns is ultimately stored.

Tables

Everything stored in HBase is ultimately grouped into one or more tables. The primary reason to have tables is to be able to control certain features that all columns in this table share. The typical things you will want to define for a table are column families. The constructor of the table descriptor in Java looks like the following:

HTableDescriptor();
HTableDescriptor(String name);
HTableDescriptor(byte[] name);
HTableDescriptor(HTableDescriptor desc);
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hadoop: The Definitive Guide

Hadoop: The Definitive Guide

Tom White
Hbase Essentials

Hbase Essentials

Nishant Garg
HBase in Action

HBase in Action

Amandeep Khurana, Nick Dimiduk

Publisher Resources

ISBN: 9781449314682Errata Page