s/Indexer/Index/

toying-with-ramdb
Philippe PITTOLI 2024-05-22 18:38:26 +02:00
parent 633085f63b
commit 3b9e56451a
7 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
# Abstract class `DODB::Indexer(V)` represents the specifications for
# Abstract class `DODB::Index(V)` represents the specifications for
# the indexes (basic indexes, partitions, tags, etc.).
abstract class DODB::Indexer(V)
abstract class DODB::Index(V)
# Indexes a value, used for **internal operations**.
#

View File

@ -3,7 +3,7 @@ require "json"
# WARNING: this code hasn't been reviewed nor used in years.
class DODB::Index::DirectedGraph(V) < DODB::Indexer(V)
class DODB::Index::DirectedGraph(V) < DODB::Index(V)
property name : String
property key_proc : Proc(V, Array(String))
getter storage_root : String

View File

@ -27,7 +27,7 @@ require "file_utils"
# NOTE: no cache, thus considered as *slow* for creation, deletion **and retrieval**.
# NOTE: see `CachedIndex` for a cached version, faster for retrieval.
# NOTE: for fast operations without fs representation, see `RAMOnlyIndex`.
class DODB::Index::Index(V) < DODB::Indexer(V)
class DODB::Index::Index(V) < DODB::Index(V)
# Name of the index, such as *id* or *color* for example.
# This is an arbitrary value, mostly to create the index directory.
#

View File

@ -30,7 +30,7 @@ require "file_utils"
# NOTE: no cache, thus considered as *slow* for creation, deletion **and retrieval**.
# NOTE: see `CachedPartition` for a cached version, faster for retrieval.
# NOTE: for fast operations without fs representation, see `RAMOnlyPartition`.
class DODB::Index::Partition(V) < DODB::Indexer(V)
class DODB::Index::Partition(V) < DODB::Index(V)
# Name of the index, such as *color* for example.
# This is an arbitrary value, mostly to create the index directory.
#

View File

@ -31,7 +31,7 @@ require "file_utils"
# NOTE: no cache, thus considered as *slow* for creation, deletion **and retrieval**.
# NOTE: see `CachedTags` for a cached version, faster for retrieval.
# NOTE: for fast operations without fs representation, see `RAMOnlyTags`.
class DODB::Index::Tags(V) < DODB::Indexer(V)
class DODB::Index::Tags(V) < DODB::Index(V)
# Name of the index, such as *keywords* for example.
# This is an arbitrary value, mostly to create the index directory.
#

View File

@ -1,7 +1,7 @@
# The `DODB::Storage` abstract class defines the specifications of
# subsequent DODB databases (uncached, cached, RAM-only, etc.).
abstract class DODB::Storage(V)
@indexers = [] of Indexer(V)
@indexers = [] of Index(V)
property directory_name : String
# Creates a database.

View File

@ -37,7 +37,7 @@ end
#
# WARNING: beware of the RAM use, see `DODB::Storage::Stacked` for a less memory-hungry option.
class DODB::Storage::Cached(V) < DODB::Storage(V)
@indexers = [] of Indexer(V)
@indexers = [] of Index(V)
property data = Hash(Int32, V).new
def initialize(@directory_name : String)