You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/04/25 19:34:25 UTC

svn commit: r1096533 - in /hbase/trunk: CHANGES.txt src/main/ruby/shell/commands/get.rb src/main/ruby/shell/commands/scan.rb

Author: stack
Date: Mon Apr 25 17:34:24 2011
New Revision: 1096533

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

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

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=1096533&r1=1096532&r2=1096533&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Mon Apr 25 17:34:24 2011
@@ -84,6 +84,8 @@ Release 0.91.0 - Unreleased
    HBASE-3800  HMaster is not able to start due to AlreadyCreatedException
    HBASE-3806  distributed log splitting double escapes task names
                (Prakash Khemani)
+   HBASE-3539  Improve shell help to reflect all possible options
+               (Harsh J Chouraria)
 
   IMPROVEMENTS
    HBASE-3290  Max Compaction Size (Nicolas Spiegelberg via Stack)  

Modified: hbase/trunk/src/main/ruby/shell/commands/get.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/commands/get.rb?rev=1096533&r1=1096532&r2=1096533&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/shell/commands/get.rb (original)
+++ hbase/trunk/src/main/ruby/shell/commands/get.rb Mon Apr 25 17:34:24 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/trunk/src/main/ruby/shell/commands/scan.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/ruby/shell/commands/scan.rb?rev=1096533&r1=1096532&r2=1096533&view=diff
==============================================================================
--- hbase/trunk/src/main/ruby/shell/commands/scan.rb (original)
+++ hbase/trunk/src/main/ruby/shell/commands/scan.rb Mon Apr 25 17:34:24 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