Class: Sparkey::HashWriter

Inherits:
Object
  • Object
show all
Includes:
Errors
Defined in:
lib/sparkey/hash_writer.rb

Instance Method Summary collapse

Methods included from Errors

#handle_status

Instance Method Details

#create(filename) ⇒ Object


4
5
6
7
8
9
# File 'lib/sparkey/hash_writer.rb', line 4

def create(filename)
  log_filename = "#{filename}.spl"
  index_filename = "#{filename}.spi"

  handle_status Sparkey::Native.hash_write(index_filename, log_filename, 0)
end