From c04a282e7c164807175262fd17c74f8027a9cc0d Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Sat, 19 Jul 2008 22:25:46 +0000 Subject: [PATCH] HBASE-754 The JRuby shell documentation is wrong in "get" and "put" git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@678235 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ bin/hirb.rb | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index c7bf329b4bd..541d6ec582c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -298,6 +298,9 @@ Trunk (unreleased changes) HBASE-730 On startup, rinse STARTCODE and SERVER from .META. (Jean-Daniel Cryans via Stack) HBASE-738 overview.html in need of updating (Izaak Rubin via Stack) + HBASE-720 clean up inconsistencies around deletes (Izaak Rubin via Stack) + HBASE-754 The JRuby shell documentation is wrong in "get" and "put" + (Jean-Daniel Cryans via Stack) NEW FEATURES HBASE-47 Option to set TTL for columns in hbase diff --git a/bin/hirb.rb b/bin/hirb.rb index 7a48313bfa4..1361eafc873 100644 --- a/bin/hirb.rb +++ b/bin/hirb.rb @@ -156,15 +156,16 @@ HBASE SHELL COMMANDS: hbase> get 't1', 'r1' hbase> get 't1', 'r1', {COLUMN => 'c1'} hbase> get 't1', 'r1', {COLUMN => ['c1', 'c2', 'c3']} - hbase> get 't1', 'r1', {TIMESTAMP => ts1, VERSIONS => 4} + hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1} + hbase> get 't1', 'r1', {COLUMN => 'c1', TIMESTAMP => ts1, VERSIONS = 4} list List all tables in hbase - put Put a cell value at specified table/row/column and optionally + put Put a cell 'value' at specified table/row/column and optionally timestamp coordinates. To put a cell value into table 't1' at row 'r1' under column 'c1' marked with the time 'ts1', do: - hbase> put 't1', 'r1', 'c1', ts1 + hbase> put 't1', 'r1', 'c1', 'value', ts1 scan Scan a table; pass table name and optionally an array of column names OR an array of column names AND a dictionary of scanner