lib/ankusa/hbase_storage.rb in ankusa-0.0.9 vs lib/ankusa/hbase_storage.rb in ankusa-0.0.10
- old
+ new
@@ -35,14 +35,14 @@
@klass_word_counts = {}
@klass_doc_counts = {}
end
def init_tables
- if not @hbase.has_table? @ftablename
+ unless @hbase.has_table? @ftablename
@hbase.create_table @ftablename, "classes", "total"
end
- if not @hbase.has_table? @stablename
+ unless @hbase.has_table? @stablename
@hbase.create_table @stablename, "totals"
end
end
def get_word_counts(word)