{"id":20772,"date":"2013-05-10T17:45:41","date_gmt":"2013-05-10T12:15:41","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=20772"},"modified":"2024-04-12T14:19:30","modified_gmt":"2024-04-12T08:49:30","slug":"scans-technique","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/","title":{"rendered":"Scans Technique"},"content":{"rendered":"\n<p>The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows:<\/p>\n\n\n\n<p>scan \u2018&lt;table name&gt;\u2019<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using Java API<\/h3>\n\n\n\n<p>The complete program to scan the entire table data using java API is as follows.<\/p>\n\n\n\n<p>import java.io.IOException;<\/p>\n\n\n\n<p>import org.apache.hadoop.conf.Configuration;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.HBaseConfiguration;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.util.Bytes;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.client.HTable;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.client.Result;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.client.ResultScanner;<\/p>\n\n\n\n<p>import org.apache.hadoop.hbase.client.Scan;<\/p>\n\n\n\n<p>public class ScanTable{<\/p>\n\n\n\n<p>public static void main(String args[]) throws IOException{<\/p>\n\n\n\n<p>\/\/ Instantiating Configuration class<\/p>\n\n\n\n<p>Configuration config = HBaseConfiguration.create();<\/p>\n\n\n\n<p>\/\/ Instantiating HTable class<\/p>\n\n\n\n<p>HTable table = new HTable(config, &#8220;emp&#8221;);<\/p>\n\n\n\n<p>\/\/ Instantiating the Scan class<\/p>\n\n\n\n<p>Scan scan = new Scan();<\/p>\n\n\n\n<p>\/\/ Scanning the required columns<\/p>\n\n\n\n<p>scan.addColumn(Bytes.toBytes(&#8220;personal&#8221;), Bytes.toBytes(&#8220;name&#8221;));<\/p>\n\n\n\n<p>scan.addColumn(Bytes.toBytes(&#8220;personal&#8221;), Bytes.toBytes(&#8220;city&#8221;));<\/p>\n\n\n\n<p>\/\/ Getting the scan result<\/p>\n\n\n\n<p>ResultScanner scanner = table.getScanner(scan);<\/p>\n\n\n\n<p>\/\/ Reading values from scan result<\/p>\n\n\n\n<p>for (Result result = scanner.next(); result != null; result = scanner.next())<\/p>\n\n\n\n<p>System.out.println(&#8220;Found row : &#8221; + result);<\/p>\n\n\n\n<p>\/\/closing the scanner<\/p>\n\n\n\n<p>scanner.close();<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>Class Scan<\/p>\n\n\n\n<p>Attributes<\/p>\n\n\n\n<p>@InterfaceAudience.Public<\/p>\n\n\n\n<p>public class Scan<\/p>\n\n\n\n<p>extends Query<\/p>\n\n\n\n<p>It is used to perform Scan operations. All operations are identical to Get with the exception of instantiation. Rather than specifying a single row, an optional startRow and stopRow may be defined. If rows are not specified, the Scanner will iterate over all rows.<\/p>\n\n\n\n<p>To get all columns from all rows of a Table, create an instance with no constraints; use the Scan() constructor. To constrain the scan to specific column families, call addFamily for each family to retrieve on your Scan instance.<\/p>\n\n\n\n<p>To get specific columns, call addColumn for each column to retrieve. To only retrieve columns within a specific range of version timestamps, call setTimeRange. To only retrieve columns with a specific timestamp, call setTimestamp. To limit the number of versions of each column to be returned, call setMaxVersions. To limit the maximum number of values returned for each call to next(), call setBatch. To add a filter, call setFilter.<\/p>\n\n\n\n<p>For small scan, it is deprecated in 2.0.0. Now we have a setLimit(int) method in Scan object which is used to tell RS how many rows we want. If the rows return reaches the limit, the RS will close the RegionScanner automatically. And we will also fetch data when openScanner in the new implementation, this means we can also finish a scan operation in one rpc call. And we have also introduced a setReadType(ReadType) method. You can use this method to tell RS to use pread explicitly.<\/p>\n\n\n\n<p>To explicitly disable server-side block caching for this scan, execute setCacheBlocks(boolean). Usage alters Scan instances. Internally, attributes are updated as the Scan runs and if enabled, metrics accumulate in the Scan instance. Be aware this is the case when you go to clone a Scan instance or if you go to reuse a created Scan instance; safer is create a Scan instance per usage.<\/p>\n\n\n\n<p><strong>Field <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Fields Modifier and Type<\/td><td>Field and Description<\/td><\/tr><tr><td>static boolean<\/td><td>DEFAULT_HBASE_CLIENT_SCANNER_ASYNC_PREFETCH\n<p>&nbsp;<\/p>\n<p>Default value of &nbsp;HBASE_CLIENT_SCANNER_ASYNC_PREFETCH.<\/p>\n<\/td><\/tr><tr><td>static String<\/td><td>HBASE_CLIENT_SCANNER_ASYNC_PREFETCH\n<p>&nbsp;<\/p>\n<p>Parameter name for client scanner sync\/async prefetch toggle.<\/p>\n<\/td><\/tr><tr><td>static String<\/td><td>SCAN_ATTRIBUTES_TABLE_NAME<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Constructor <\/strong><\/p>\n\n\n\n<p>Scan() &#8211; Create a Scan operation across all rows.<\/p>\n\n\n\n<p>Scan(Get get) &#8211; Builds a scan object with the same specs as get.<\/p>\n\n\n\n<p>Scan(Scan scan) &#8211; Creates a new instance of this class while copying all values.<\/p>\n\n\n\n<p><strong>Method <\/strong><\/p>\n\n\n\n<p>Modifier and Type with method and description are listed below \u2013<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; addColumn(byte[] family, byte[] qualifier). Get the column from the specified family with the specified qualifier.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; addFamily(byte[] family). Get all columns from the specified family.<\/p>\n\n\n\n<p>static Scan &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; createScanFromCursor(Cursor cursor). Create a new Scan with a cursor.<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getAllowPartialResults()<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getBatch()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getCacheBlocks(). Get whether blocks should be cached for this Scan.<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getCaching()<\/p>\n\n\n\n<p>byte[][] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getFamilies()<\/p>\n\n\n\n<p>Map&lt;byte[],NavigableSet&lt;byte[]&gt;&gt; &nbsp;&nbsp;&nbsp; getFamilyMap(). Getting the familyMap<\/p>\n\n\n\n<p>Filter &nbsp;&nbsp; getFilter()<\/p>\n\n\n\n<p>Map&lt;String,Object&gt; &nbsp;&nbsp; getFingerprint(). Compile the table and column family (i.e.<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getLimit()<\/p>\n\n\n\n<p>long &nbsp;&nbsp;&nbsp; getMaxResultSize()<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getMaxResultsPerColumnFamily()<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getMaxVersions()<\/p>\n\n\n\n<p>Scan.ReadType &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getReadType()<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getRowOffsetPerColumnFamily(). Method for retrieving the scan&#8217;s offset per row per column family (#kvs to be skipped)<\/p>\n\n\n\n<p>byte[] &nbsp; getStartRow()<\/p>\n\n\n\n<p>byte[] &nbsp; getStopRow()<\/p>\n\n\n\n<p>TimeRange &nbsp;&nbsp;&nbsp;&nbsp; getTimeRange()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hasFamilies()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hasFilter()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; includeStartRow()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; includeStopRow()<\/p>\n\n\n\n<p>Boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isAsyncPrefetch()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isGetScan()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isNeedCursorResult()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isRaw()<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isReversed(), Get whether this scan is a reversed one.<\/p>\n\n\n\n<p>boolean &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isScanMetricsEnabled()<\/p>\n\n\n\n<p>int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; numFamilies()<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; readAllVersions(). Get all available versions.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; readVersions(int versions). Get up to the specified number of versions of each column.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setACL(Map&lt;String,org.apache.hadoop.hbase.security.access.Permission&gt; perms)<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setACL(String user, org.apache.hadoop.hbase.security.access.Permission perms)<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setAllowPartialResults(boolean allowPartialResults). Setting whether the caller wants to see the partial results when server returns less-than-expected cells.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setAsyncPrefetch(boolean asyncPrefetch)<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setAttribute(String name, byte[] value). Sets an attribute.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setAuthorizations(org.apache.hadoop.hbase.security.visibility.Authorizations authorizations). Sets the authorizations to be used by this Query<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setBatch(int batch). Set the maximum number of cells to return for each call to next().<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setCacheBlocks(boolean cacheBlocks). Set whether blocks should be cached for this Scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setCaching(int caching). Set the number of rows for caching that will be passed to scanners.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setColumnFamilyTimeRange(byte[] cf, long minStamp, long maxStamp). Get versions of columns only within the specified timestamp range, [minStamp, maxStamp) on a per CF bases.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setConsistency(Consistency consistency). Sets the consistency level for this operation<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setFamilyMap(Map&lt;byte[],NavigableSet&lt;byte[]&gt;&gt; familyMap). Setting the familyMap<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setFilter(Filter filter). Apply the specified server-side filter when performing the Query.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setId(String id). This method allows you to set an identifier on an operation.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setIsolationLevel(IsolationLevel level). Set the isolation level for this query.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setLimit(int limit). Set the limit of rows for this scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setLoadColumnFamiliesOnDemand(boolean value). Set the value indicating whether loading CFs on demand should be allowed (cluster default is false).<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setMaxResultSize(long maxResultSize). Set the maximum result size.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setMaxResultsPerColumnFamily(int limit). Set the maximum number of values to return per row per Column Family<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setNeedCursorResult(boolean needCursorResult). When the server is slow or we scan a table with many deleted data or we use a sparse filter, the server will response heartbeat to prevent timeout.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setOneRowLimit(). Call this when you only want to get one row.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setPriority(int priority)<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setRaw(boolean raw). Enable\/disable &#8220;raw&#8221; mode for this scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setReadType(Scan.ReadType readType). Set the read type for this scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setReplicaId(int Id). Specify region replica id where Query will fetch data from.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setReversed(boolean reversed). Set whether this scan is a reversed one<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setRowOffsetPerColumnFamily(int offset). Set offset for the row per Column Family.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setRowPrefixFilter(byte[] rowPrefix). Set a filter (using stopRow and startRow) so the result set only contains rows where the rowKey starts with the specified prefix.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setScanMetricsEnabled(boolean enabled). Enable collection of ScanMetrics.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setTimeRange(long minStamp, long maxStamp)<\/p>\n\n\n\n<p>Get versions of columns only within the specified timestamp range, [minStamp, maxStamp).<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; setTimestamp(long timestamp). Get versions of columns with the specified timestamp.<\/p>\n\n\n\n<p>Map&lt;String,Object&gt; &nbsp;&nbsp; toMap(int maxCols). Compile the details beyond the scope of getFingerprint (row, columns, timestamps, etc.) into a Map along with the fingerprinted information.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; withStartRow(byte[] startRow). Set the start row of the scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; withStartRow(byte[] startRow, boolean inclusive). Set the start row of the scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; withStopRow(byte[] stopRow). Set the stop row of the scan.<\/p>\n\n\n\n<p>Scan &nbsp;&nbsp;&nbsp; withStopRow(byte[] stopRow, boolean inclusive). Set the stop row of the scan.<\/p>\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>The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows: scan \u2018&lt;table name&gt;\u2019 Using Java API The complete program to scan the entire table data using java API is as follows. import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.util.Bytes;&#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-20772","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>Scans Technique - 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\/scans-technique\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scans Technique - Tutorial\" \/>\n<meta property=\"og:description\" content=\"The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows: scan \u2018&lt;table name&gt;\u2019 Using Java API The complete program to scan the entire table data using java API is as follows. import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.util.Bytes;...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/\" \/>\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=\"5 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\/scans-technique\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/\",\"name\":\"Scans Technique - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2013-05-10T12:15:41+00:00\",\"dateModified\":\"2024-04-12T08:49:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scans Technique\"}]},{\"@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":"Scans Technique - 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\/scans-technique\/","og_locale":"en_US","og_type":"article","og_title":"Scans Technique - Tutorial","og_description":"The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows: scan \u2018&lt;table name&gt;\u2019 Using Java API The complete program to scan the entire table data using java API is as follows. import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.util.Bytes;...","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/","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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/","name":"Scans Technique - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2013-05-10T12:15:41+00:00","dateModified":"2024-04-12T08:49:30+00:00","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/scans-technique\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Scans Technique"}]},{"@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\/20772","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=20772"}],"version-history":[{"count":6,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/20772\/revisions"}],"predecessor-version":[{"id":127349,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/20772\/revisions\/127349"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=20772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=20772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=20772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}