NAME
Senna::Symbol - Senna Symbol Object (sen_sym)
SYNOPSIS
use Senna;
my $index = Senna::Index->create();
my $index = Senna::Index->open($path);
$index->insert($key, $value);
$index->select($query);
METHODS
create
Creates a new sen_sym.
my $index = Senna::Symbol->create(
$path, $key_size, $flags, $encoding
);
my $index = Senna::Symbol->create({
path => $path,
key_size => $key_size,
flags => $flags,
encoding => $encoding
});
For backwards compatibility, if given anything other than 1 or 4 arguments, create() assumes that you've been given a key value pair like so:
my $index = Senna::Symbol->create(
path => $path,
key_size => $key_size,
flags => $flags,
encoding => $encoding
);
However, note that this form is DEPRECATED. Use the HASHREF form instead
path
info
my $info = $symbol->info();