Documentation
¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) GetCurrent(_ context.Context) (uint64, error)
- func (s *Store) GetDictBytes(_ context.Context, dictID uint64) ([]byte, error)
- func (s *Store) GetK(ctx context.Context, dictID uint64) (int, error)
- func (s *Store) PutDictBytes(ctx context.Context, dictBytes []byte) (uint64, error)
- func (s *Store) SetCurrent(ctx context.Context, dictID uint64) error
- func (s *Store) SetK(ctx context.Context, dictID uint64, k int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides access to dictionary storage backed by a TreeDB backend.
func (*Store) GetCurrent ¶
GetCurrent returns the current dictionary ID or 0 if unset.
func (*Store) GetDictBytes ¶
GetDictBytes returns the dictionary bytes for dictID.
func (*Store) GetK ¶
GetK loads the preferred frame group size (K) for dictID. Returns 0 when unset.
func (*Store) PutDictBytes ¶
PutDictBytes inserts dict bytes (deduped by hash) and returns its dictID.
func (*Store) SetCurrent ¶
SetCurrent marks dictID as the current dictionary.
Click to show internal directories.
Click to hide internal directories.