s/Indexer/Index/
This commit is contained in:
parent
633085f63b
commit
3b9e56451a
@ -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**.
|
||||
#
|
@ -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
|
||||
|
@ -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.
|
||||
#
|
||||
|
@ -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.
|
||||
#
|
||||
|
@ -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.
|
||||
#
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user