Documentation ¶
Overview ¶
silo
silo
silo
tagTypes.go
tagsbrowser.go
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func InsertRecord(args *InsertArgs, reply *SuccessReply) error
- func IsIn(aRecord ResultRecordTransmittable, aList ResultRecordTransmittableCollection) bool
- func Launch(file string, line string)
- func NewNullLogger() *logrus.Logger
- func NewRPCRequest(r io.Reader) *rpcRequest
- func ReSplit(seps []string, in []string) []string
- func RegSplit(text string, reg *regexp.Regexp) []string
- func StartServer()
- type Args
- type Farm
- type HistoReply
- type InsertArgs
- type Manor
- type Map
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Load(key K) (value V, ok bool)
- func (m *Map[K, V]) LoadAndDelete(key K) (value V, loaded bool)
- func (m *Map[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool)
- func (m *Map[K, V]) Range(f func(key K, value V) bool)
- func (m *Map[K, V]) Store(key K, value V)
- type RecordTransmittable
- type Reply
- type ResultRecordTransmittable
- type ResultRecordTransmittableCollection
- type SerialiseMe
- type SiloMetaData
- type SiloStore
- type SqlStore
- func (s *SqlStore) Dbh() *sql.DB
- func (s *SqlStore) Flush(silo *tagSilo)
- func (s *SqlStore) GetRecord(key []byte) record
- func (s *SqlStore) GetRecordId(tagID int) []int
- func (store *SqlStore) GetString(s *tagSilo, index int) string
- func (s *SqlStore) GetSymbol(silo *tagSilo, aStr string) int
- func (s *SqlStore) Init(silo *tagSilo)
- func (s *SqlStore) InsertRecord(silo *tagSilo, key []byte, aRecord record)
- func (s *SqlStore) InsertStringAndSymbol(silo *tagSilo, aStr string)
- func (s *SqlStore) StoreRecordId(key []byte, val []byte)
- func (s *SqlStore) StoreTagToRecord(recordId int, fp fingerPrint)
- type StatusReply
- type StringListReply
- type SuccessReply
- type TagResponder
- func (t *TagResponder) Error(args *Args, reply *Reply) error
- func (t *TagResponder) HistoStatus(args *Args, reply *HistoReply) error
- func (t *TagResponder) InsertRecord(args *InsertArgs, reply *SuccessReply) error
- func (t *TagResponder) PredictString(args *Args, reply *StringListReply) error
- func (t *TagResponder) SearchString(args *Args, reply *Reply) error
- func (t *TagResponder) Shutdown(args *Args, reply *SuccessReply) error
- func (t *TagResponder) Status(args *Args, reply *StatusReply) error
- func (t *TagResponder) TopTagsStatus(args *Args, reply *TopTagsReply) error
- type TopTagsReply
- type WeaviateStore
- func (store *WeaviateStore) Dbh() *sql.DB
- func (s *WeaviateStore) Flush(silo *tagSilo)
- func (s *WeaviateStore) GetRecord(key []byte) record
- func (s *WeaviateStore) GetRecordId(tagID int) []int
- func (store *WeaviateStore) GetString(s *tagSilo, index int) string
- func (s *WeaviateStore) GetSymbol(silo *tagSilo, aStr string) int
- func (s *WeaviateStore) Init(silo *tagSilo)
- func (s *WeaviateStore) InsertRecord(silo *tagSilo, key []byte, aRecord record)
- func (s *WeaviateStore) InsertStringAndSymbol(silo *tagSilo, aStr string)
- func (s *WeaviateStore) StoreRecordId(key []byte, val []byte)
- func (s *WeaviateStore) StoreTagToRecord(recordId int, fp fingerPrint)
Constants ¶
This section is empty.
Variables ¶
View Source
var BoundariesRegex = regexp.MustCompile("\\b|\\p{Z}+|\\p{C}|\\s+|\\/+|\\.+|\\\\+|_+")
View Source
var FragsRegex = regexp.MustCompile(`(\s+|,+|;+|:+|"+|'+|\.|/+|\+|-+|_+|=+|}+|{+|>+|<+|!+|\)+|\(+)`) //regexp.MustCompile("(\\/+|\\.+|\\\\+|\\-+|\\_+|_+|\\\\(|\\\\|\\p{Z}+|\\p{C}|\\s+|:|,|\"|{|}|>|<|!|))")
View Source
var FragsString = "\\b|\\p{Z}+|\\p{C}|\\s+|\\/+|\\.+|\\\\+|_+|\\\\(|\\\\)"
View Source
var RpcPath = "/rpc/json/"
View Source
var ServerAddress = "127.0.0.1:6781"
Functions ¶
func InsertRecord ¶
func InsertRecord(args *InsertArgs, reply *SuccessReply) error
func IsIn ¶
func IsIn(aRecord ResultRecordTransmittable, aList ResultRecordTransmittableCollection) bool
func NewNullLogger ¶
NewNullLogger creates a discarding logger and installs the test hook.
func NewRPCRequest ¶
NewRPCRequest returns a new rpcRequest.
func StartServer ¶
func StartServer()
Types ¶
type Farm ¶
type Farm struct { ShutdownStatus bool LockLog chan string LogChan map[string]chan string // contains filtered or unexported fields }
func (*Farm) SubmitRecord ¶
func (f *Farm) SubmitRecord(r RecordTransmittable)
type HistoReply ¶
type InsertArgs ¶
type Manor ¶
type Manor struct { Farms []*Farm // contains filtered or unexported fields }
func CreateManor ¶
func CreateManor(config tomlConfig) *Manor
func (*Manor) SubmitRecord ¶
func (m *Manor) SubmitRecord(r RecordTransmittable)
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func (*Map[K, V]) LoadAndDelete ¶
func (*Map[K, V]) LoadOrStore ¶
type RecordTransmittable ¶
type Reply ¶
type Reply struct {
C []ResultRecordTransmittable
}
type ResultRecordTransmittableCollection ¶
type ResultRecordTransmittableCollection []ResultRecordTransmittable
func (ResultRecordTransmittableCollection) Len ¶
func (r ResultRecordTransmittableCollection) Len() int
func (ResultRecordTransmittableCollection) Less ¶
func (r ResultRecordTransmittableCollection) Less(i, j int) bool
func (ResultRecordTransmittableCollection) Swap ¶
func (a ResultRecordTransmittableCollection) Swap(i, j int)
type SerialiseMe ¶
type SerialiseMe struct { Id string Last_database_record int Database []record //The in memory database, if any Counters *Map[string, int] Next_string_index int Last_tag_record int Reverse_string_table []string Tag2file [][]*record Tag2record [][]int Temporary bool Offload_index int Offloading bool MaxRecords int }
type SiloMetaData ¶
type SiloStore ¶
type SiloStore interface { Init(silo *tagSilo) GetString(s *tagSilo, index int) string GetSymbol(silo *tagSilo, aStr string) int InsertRecord(silo *tagSilo, key []byte, aRecord record) InsertStringAndSymbol(silo *tagSilo, aStr string) Flush(silo *tagSilo) GetRecordId(tagID int) []int StoreRecordId(key, val []byte) GetRecord(key []byte) record StoreTagToRecord(recordId int, fp fingerPrint) }
type SqlStore ¶
func NewSQLStore ¶
func (*SqlStore) GetRecordId ¶
func (*SqlStore) InsertRecord ¶
func (*SqlStore) InsertStringAndSymbol ¶
func (*SqlStore) StoreRecordId ¶
func (*SqlStore) StoreTagToRecord ¶
type StatusReply ¶
type StringListReply ¶
type StringListReply struct {
C []string
}
type SuccessReply ¶
type TagResponder ¶
type TagResponder int
func (*TagResponder) HistoStatus ¶
func (t *TagResponder) HistoStatus(args *Args, reply *HistoReply) error
func (*TagResponder) InsertRecord ¶
func (t *TagResponder) InsertRecord(args *InsertArgs, reply *SuccessReply) error
func (*TagResponder) PredictString ¶
func (t *TagResponder) PredictString(args *Args, reply *StringListReply) error
func (*TagResponder) SearchString ¶
func (t *TagResponder) SearchString(args *Args, reply *Reply) error
func (*TagResponder) Shutdown ¶
func (t *TagResponder) Shutdown(args *Args, reply *SuccessReply) error
func (*TagResponder) Status ¶
func (t *TagResponder) Status(args *Args, reply *StatusReply) error
func (*TagResponder) TopTagsStatus ¶
func (t *TagResponder) TopTagsStatus(args *Args, reply *TopTagsReply) error
type TopTagsReply ¶
type WeaviateStore ¶
type WeaviateStore struct { StringTable *lsmkv.Bucket SymbolTable *lsmkv.Bucket RecordTable *lsmkv.Bucket TagToRecordTable *lsmkv.Bucket DirectoryName string }
func NewWeaviateStore ¶
func NewWeaviateStore(dirname string) *WeaviateStore
func (*WeaviateStore) Dbh ¶
func (store *WeaviateStore) Dbh() *sql.DB
func (*WeaviateStore) Flush ¶
func (s *WeaviateStore) Flush(silo *tagSilo)
func (*WeaviateStore) GetRecord ¶
func (s *WeaviateStore) GetRecord(key []byte) record
func (*WeaviateStore) GetRecordId ¶
func (s *WeaviateStore) GetRecordId(tagID int) []int
func (*WeaviateStore) GetString ¶
func (store *WeaviateStore) GetString(s *tagSilo, index int) string
func (*WeaviateStore) GetSymbol ¶
func (s *WeaviateStore) GetSymbol(silo *tagSilo, aStr string) int
func (*WeaviateStore) Init ¶
func (s *WeaviateStore) Init(silo *tagSilo)
func (*WeaviateStore) InsertRecord ¶
func (s *WeaviateStore) InsertRecord(silo *tagSilo, key []byte, aRecord record)
func (*WeaviateStore) InsertStringAndSymbol ¶
func (s *WeaviateStore) InsertStringAndSymbol(silo *tagSilo, aStr string)
func (*WeaviateStore) StoreRecordId ¶
func (s *WeaviateStore) StoreRecordId(key []byte, val []byte)
func (*WeaviateStore) StoreTagToRecord ¶
func (s *WeaviateStore) StoreTagToRecord(recordId int, fp fingerPrint)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
entities
ent contains common types used throughout various lsmkv (sub-)packages
|
ent contains common types used throughout various lsmkv (sub-)packages |
roaringset
Package roaringset contains all the LSM business logic that is unique to the "RoaringSet" strategy
|
Package roaringset contains all the LSM business logic that is unique to the "RoaringSet" strategy |
Click to show internal directories.
Click to hide internal directories.