Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Hbase Essentials
  • Toc
  • feedback
Hbase Essentials

Hbase Essentials

By : Garg
3.5 (2)
close
Hbase Essentials

Hbase Essentials

3.5 (2)
By: Garg

Overview of this book

This book is intended for developers and Big Data engineers who want to know all about HBase at a hands-on level. For in-depth understanding, it would be helpful to have a bit of familiarity with HDFS and MapReduce programming concepts with no prior experience with HBase or similar technologies. This book is also for Big Data enthusiasts and database developers who have worked with other NoSQL databases and now want to explore HBase as another futuristic, scalable database solution in the Big Data space.
Table of Contents (9 chapters)
close

Implementing filters

We apply column families, column qualifiers, timestamps, or ranges with the get() and scan() operations for limiting the data retrieved. Designing a row key to match the access patterns in every case is not possible, as at times we only need a subset of the data retrieved. Filters provide such a level of fine-grained access, that is, filtering the dataset based on some regular expression. The HBase API provides a filter interface and an abstract class, FilterBase, under the org.apache.hadoop.hbase.filter package, which is further extended by many classes such as CompareFilter, PageFilter, SkipFilter, TimeStampsFilter, and so on, to provide additional functionalities. The following method defined in the Scan class is used to set an instance of the filter:

  • setFilter(Filter filter): Apply the specified server-side filter when performing the query

Typically, filters can be categorized into multiple types, as follows:

  • Utility filters
  • Comparison filters
  • Custom filters

Utility filters...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete