filehashDB1-class: Filehash DB1 Class

filehashDB1-classR Documentation

Filehash DB1 Class

Description

An implementation of filehash databases using a single large file

Usage

## S4 method for signature 'filehashDB1,character'
dbInsert(db, key, value, ...)

## S4 method for signature 'filehashDB1,character'
dbFetch(db, key, ...)

## S4 method for signature 'filehashDB1,character'
dbMultiFetch(db, key, ...)

## S4 method for signature 'filehashDB1,character'
dbExists(db, key, ...)

## S4 method for signature 'filehashDB1'
dbList(db, ...)

## S4 method for signature 'filehashDB1,character'
dbDelete(db, key, ...)

## S4 method for signature 'filehashDB1'
dbUnlink(db, ...)

## S4 method for signature 'filehashDB1'
dbReorganize(db, ...)

Arguments

db

a filehashDB1 object

key

character, the name of an R object in the database

value

an R object

...

arguments passed to other methods

Details

For dbMultiFetch, key is a character vector of keys.

Methods (by generic)

  • dbInsert(db = filehashDB1, key = character): Insert an R object into a filehashDB1 database

  • dbFetch(db = filehashDB1, key = character): Retrieve an object from a filehash DB1 database

  • dbMultiFetch(db = filehashDB1, key = character): Retrieve multiple objects from a filehash DB1 database

  • dbExists(db = filehashDB1, key = character): Determine if a key exists in a filehash DB1 database

  • dbList(filehashDB1): Return a character vector containing all keys in a database

  • dbDelete(db = filehashDB1, key = character): Delete a key and it's corresponding object from a filehashDB1 database

  • dbUnlink(filehashDB1): Delete an entire filehashDB1 database

  • dbReorganize(filehashDB1): Reorganize and compactify a filehahsDB1 database

Slots

datafile

full path to the database file (filehashDB1 only)

meta

list containing an environment for database metadata (filehashDB1 only)


filehash documentation built on June 26, 2024, 1:06 a.m.