Method: HBase#table
- Defined in:
-
lib/hbase-jruby/hbase.rb,
lib/hbase-jruby/scoped.rb
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/hbase-jruby/hbase.rb', line 158 def table table_name, opts = {} check_closed # Backward-compatibility (to be removed) if opts.has_key?(:cache) opts = { :column_cache => opts[:cache] ? DEFAULT_COLUMN_CACHE_SIZE : 0 } end ht = HBase::Table.send :new, self, @config, table_name, opts.fetch(:column_cache, DEFAULT_COLUMN_CACHE_SIZE) if block_given? yield ht else ht end end |