{"id":20771,"date":"2013-05-10T17:45:28","date_gmt":"2013-05-10T12:15:28","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=20771"},"modified":"2024-04-12T14:19:30","modified_gmt":"2024-04-12T08:49:30","slug":"put-get-and-delete-method","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/","title":{"rendered":"Put, get and delete method"},"content":{"rendered":"\n<p>HBase has its own java client in core library. It covers pretty much everything. (Got connection as well). If you need a asynchronous client<\/p>\n\n\n\n<p>The primary client interface to HBase is the HTable class in the org.apache.hadoop.hbase.client package. It provides the user with all the functionality needed to store and retrieve data from HBase as well as delete obsolete values and so on. Before looking at the various methods this class provides, let us address some general aspects of its usage.<\/p>\n\n\n\n<p>All operations that mutate data are guaranteed to be atomic on a per-row basis. This affects all other concurrent readers and writers of that same row. In other words, it does not matter if another client or thread is reading from or writing to the same row: they either read a consistent last mutation, or may have to wait before being able to apply their change.<\/p>\n\n\n\n<p>There are four main operations performed in HBase and they are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create<\/li>\n\n\n\n<li>Read (Get and Scan)<\/li>\n\n\n\n<li>Add (update)<\/li>\n\n\n\n<li>Delete.<\/li>\n<\/ul>\n\n\n\n<p>HBase has a Java Native API which provides programmatic access to Data Manipulation Language (DML).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Class HBase Configuration<\/h3>\n\n\n\n<p>Adds HBase configuration files to a Configuration. This class belongs to the org.apache.hadoop.hbase package.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Methods and description<\/h3>\n\n\n\n<p>static org.apache.hadoop.conf.Configuration create() &#8211; This method creates a Configuration with HBase resources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Class HTable<\/h3>\n\n\n\n<p>HTable is an HBase internal class that represents an HBase table. It is an implementation of table that is used to communicate with a single HBase table. This class belongs to the org.apache.hadoop.hbase.client class.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>Constructors<\/strong><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HTable()<\/li>\n\n\n\n<li>HTable(TableName tableName, ClusterConnection connection, ExecutorService pool)<\/li>\n<\/ul>\n\n\n\n<p>Using this constructor, you can create an object to access an HBase table.<\/p>\n\n\n\n<p><strong>Methods and description<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>void close() &#8211; Releases all the resources of the HTable.<\/li>\n\n\n\n<li>void delete(Delete delete) &#8211; Deletes the specified cells\/row.<\/li>\n\n\n\n<li>boolean exists(Get get) &#8211; Using this method, you can test the existence of columns in the table, as specified by Get.<\/li>\n\n\n\n<li>Result get(Get get) &#8211; Retrieves certain cells from a given row.<\/li>\n\n\n\n<li>apache.hadoop.conf.Configuration getConfiguration() &#8211; Returns the Configuration object used by this instance.<\/li>\n\n\n\n<li>TableName getName() &#8211; Returns the table name instance of this table.<\/li>\n\n\n\n<li>HTableDescriptor getTableDescriptor() &#8211; Returns the table descriptor for this table.<\/li>\n\n\n\n<li>byte[] getTableName() &#8211; Returns the name of this table.<\/li>\n\n\n\n<li>void put(Put put) &#8211; Using this method, you can insert data into the table.\n<ul class=\"wp-block-list\"><\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Apply for HBase Certification<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/certified-hbase-professional\">https:\/\/www.vskills.in\/certification\/certified-hbase-professional<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/certified-hbase-professional\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorials<\/a><\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>HBase has its own java client in core library. It covers pretty much everything. (Got connection as well). If you need a asynchronous client The primary client interface to HBase is the HTable class in the org.apache.hadoop.hbase.client package. It provides the user with all the functionality needed to store and retrieve data from HBase as&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[69],"tags":[],"class_list":["post-20771","page","type-page","status-publish","hentry","category-hbase"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Put, get and delete method - Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Put, get and delete method - Tutorial\" \/>\n<meta property=\"og:description\" content=\"HBase has its own java client in core library. It covers pretty much everything. (Got connection as well). If you need a asynchronous client The primary client interface to HBase is the HTable class in the org.apache.hadoop.hbase.client package. It provides the user with all the functionality needed to store and retrieve data from HBase as...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:49:30+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/\",\"name\":\"Put, get and delete method - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2013-05-10T12:15:28+00:00\",\"dateModified\":\"2024-04-12T08:49:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Put, get and delete method\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Put, get and delete method - Tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/","og_locale":"en_US","og_type":"article","og_title":"Put, get and delete method - Tutorial","og_description":"HBase has its own java client in core library. It covers pretty much everything. (Got connection as well). If you need a asynchronous client The primary client interface to HBase is the HTable class in the org.apache.hadoop.hbase.client package. It provides the user with all the functionality needed to store and retrieve data from HBase as...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:49:30+00:00","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/","name":"Put, get and delete method - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2013-05-10T12:15:28+00:00","dateModified":"2024-04-12T08:49:30+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/put-get-and-delete-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Put, get and delete method"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/20771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=20771"}],"version-history":[{"count":6,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/20771\/revisions"}],"predecessor-version":[{"id":127347,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/20771\/revisions\/127347"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=20771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=20771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=20771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}