Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Interfaces, classes, and exceptions


Interface is a set of abstract methods. A class in Java implements an interface and inherits the abstract methods of the interface. It is not a class. Writing an interface is the same as writing a class. A class tells us about the attributes and behaviors of an object. An interface contains behaviors that a class implements.

Class is a template/blueprint that describes the behavior that an object supports.

Exception is a problem that arises during the execution of a program.

Here is the list of some packages to be used in Java code:

  • org.apache.hadoop.hbase: This package contains a base class for HBase

  • org.apache.hadoop.hbase.backup: This package contains classes related to backup tasks

  • org.apache.hadoop.hbase.client: This package contains a client-related class

  • org.apache.hadoop.hbase.codec: This package contains the Codec interface

  • org.apache.hadoop.hbase.coprocessor: This package is used to write coprocessors

  • org.apache.hadoop.hbase.exceptions: This...