sishen-hbase-ruby 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/hbase-ruby.gemspec +1 -1
- data/lib/hbase/operation/row_operation.rb +5 -5
- metadata +1 -1
data/Rakefile
CHANGED
data/hbase-ruby.gemspec
CHANGED
@@ -22,14 +22,14 @@ module HBase
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
def create_row(table_name, name, timestamp = nil,
|
25
|
+
def create_row(table_name, name, timestamp = nil, columns = nil)
|
26
26
|
begin
|
27
27
|
request = Request::RowRequest.new(table_name, name, timestamp)
|
28
28
|
data = []
|
29
|
-
if
|
30
|
-
data =
|
31
|
-
elsif
|
32
|
-
data = [
|
29
|
+
if columns.instance_of? Array
|
30
|
+
data = columns
|
31
|
+
elsif columns.instance_of? Hash
|
32
|
+
data = [columns]
|
33
33
|
else
|
34
34
|
raise StandardError, "Only Array or Hash data accepted"
|
35
35
|
end
|