hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1096538 - in /hbase/branches/0.90: CHANGES.txt src/main/ruby/shell/commands/get.rb src/main/ruby/shell/commands/scan.rb
Date Mon, 25 Apr 2011 17:41:42 GMT
Author: stack
Date: Mon Apr 25 17:41:41 2011
New Revision: 1096538

URL: http://svn.apache.org/viewvc?rev=1096538&view=rev
Log:
HBASE-3539 Improve shell help to reflect all possible options

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/ruby/shell/commands/get.rb
    hbase/branches/0.90/src/main/ruby/shell/commands/scan.rb

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1096538&r1=1096537&r2=1096538&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Mon Apr 25 17:41:41 2011
@@ -28,6 +28,8 @@ Release 0.90.3 - Unreleased
    HBASE-3800  HMaster is not able to start due to AlreadyCreatedException
    HBASE-3817  HBase Shell has an issue accepting FILTER for the 'scan' command
                (Harsh J Chouraria)
+   HBASE-3539  Improve shell help to reflect all possible options
+               (Harsh J Chouraria)
 
   IMPROVEMENT
    HBASE-3717  deprecate HTable isTableEnabled() methods in favor of HBaseAdmin

Modified: hbase/branches/0.90/src/main/ruby/shell/commands/get.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/ruby/shell/commands/get.rb?rev=1096538&r1=1096537&r2=1096538&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/ruby/shell/commands/get.rb (original)
+++ hbase/branches/0.90/src/main/ruby/shell/commands/get.rb Mon Apr 25 17:41:41 2011
@@ -24,7 +24,7 @@ module Shell
       def help
         return <<-EOF
 Get row or cell contents; pass table name, row, and optionally
-a dictionary of column(s), timestamp and versions. Examples:
+a dictionary of column(s), timestamp, timerange and versions. Examples:
 
   hbase> get 't1', 'r1'
   hbase> get 't1', 'r1', {TIMERANGE => [ts1, ts2]}

Modified: hbase/branches/0.90/src/main/ruby/shell/commands/scan.rb
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/ruby/shell/commands/scan.rb?rev=1096538&r1=1096537&r2=1096538&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/ruby/shell/commands/scan.rb (original)
+++ hbase/branches/0.90/src/main/ruby/shell/commands/scan.rb Mon Apr 25 17:41:41 2011
@@ -24,15 +24,19 @@ module Shell
       def help
         return <<-EOF
 Scan a table; pass table name and optionally a dictionary of scanner
-specifications.  Scanner specifications may include one or more of
-the following: LIMIT, STARTROW, STOPROW, TIMESTAMP, or COLUMNS.  If
-no columns are specified, all columns will be scanned.  To scan all
-members of a column family, leave the qualifier empty as in
-'col_family:'.  Examples:
+specifications.  Scanner specifications may include one or more of:
+TIMERANGE, FILTER, LIMIT, STARTROW, STOPROW, TIMESTAMP, MAXLENGTH,
+or COLUMNS. If no columns are specified, all columns will be scanned.
+To scan all members of a column family, leave the qualifier empty as in
+'col_family:'.
+
+Some examples:
 
   hbase> scan '.META.'
   hbase> scan '.META.', {COLUMNS => 'info:regioninfo'}
   hbase> scan 't1', {COLUMNS => ['c1', 'c2'], LIMIT => 10, STARTROW => 'xyz'}
+  hbase> scan 't1', {FILTER => org.apache.hadoop.hbase.filter.ColumnPaginationFilter.new(1,
0)}
+  hbase> scan 't1', {COLUMNS => 'c1', TIMERANGE => [1303668804, 1303668904]}
 
 For experts, there is an additional option -- CACHE_BLOCKS -- which
 switches block caching for the scanner on (true) or off (false).  By



Mime
View raw message