Documentation ¶
Overview ¶
Copyright 2022 Molecula Corp. (DBA FeatureBase). SPDX-License-Identifier: Apache-2.0
Copyright 2022 Molecula Corp. (DBA FeatureBase). SPDX-License-Identifier: Apache-2.0
Index ¶
- type ReadCloser
- type TranslateEntryReader
- type TranslateStore
- func (s *TranslateStore) Close() error
- func (s *TranslateStore) CreateKeys(keys ...string) (map[string]uint64, error)
- func (s *TranslateStore) EntryReader(ctx context.Context, offset uint64) (pilosa.TranslateEntryReader, error)
- func (s *TranslateStore) FindKeys(keys ...string) (map[string]uint64, error)
- func (s *TranslateStore) ForceSet(id uint64, key string) error
- func (s *TranslateStore) MaxID() (uint64, error)
- func (s *TranslateStore) PartitionID() int
- func (s *TranslateStore) ReadFrom(r io.Reader) (int64, error)
- func (s *TranslateStore) ReadOnly() bool
- func (s *TranslateStore) SetReadOnly(v bool)
- func (s *TranslateStore) TranslateID(id uint64) (string, error)
- func (s *TranslateStore) TranslateIDs(ids []uint64) ([]string, error)
- func (s *TranslateStore) TranslateKey(key string, writable bool) (uint64, error)
- func (s *TranslateStore) TranslateKeys(keys []string, writable bool) ([]uint64, error)
- func (s *TranslateStore) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadCloser ¶
type ReadCloser struct { ReadFunc func(p []byte) (int, error) CloseFunc func() error // contains filtered or unexported fields }
func (*ReadCloser) Close ¶
func (rc *ReadCloser) Close() error
type TranslateEntryReader ¶
type TranslateEntryReader struct { CloseFunc func() error ReadEntryFunc func(entry *pilosa.TranslateEntry) error }
func (*TranslateEntryReader) Close ¶
func (r *TranslateEntryReader) Close() error
func (*TranslateEntryReader) ReadEntry ¶
func (r *TranslateEntryReader) ReadEntry(entry *pilosa.TranslateEntry) error
type TranslateStore ¶
type TranslateStore struct { CloseFunc func() error MaxIDFunc func() (uint64, error) PartitionIDFunc func() int ReadOnlyFunc func() bool SetReadOnlyFunc func(v bool) TranslateKeyFunc func(key string, writable bool) (uint64, error) TranslateKeysFunc func(keys []string, writable bool) ([]uint64, error) TranslateIDFunc func(id uint64) (string, error) TranslateIDsFunc func(ids []uint64) ([]string, error) FindKeysFunc func(keys ...string) (map[string]uint64, error) CreateKeysFunc func(keys ...string) (map[string]uint64, error) ForceSetFunc func(id uint64, key string) error EntryReaderFunc func(ctx context.Context, offset uint64) (pilosa.TranslateEntryReader, error) }
func (*TranslateStore) Close ¶
func (s *TranslateStore) Close() error
func (*TranslateStore) CreateKeys ¶
func (s *TranslateStore) CreateKeys(keys ...string) (map[string]uint64, error)
func (*TranslateStore) EntryReader ¶
func (s *TranslateStore) EntryReader(ctx context.Context, offset uint64) (pilosa.TranslateEntryReader, error)
func (*TranslateStore) FindKeys ¶
func (s *TranslateStore) FindKeys(keys ...string) (map[string]uint64, error)
func (*TranslateStore) MaxID ¶
func (s *TranslateStore) MaxID() (uint64, error)
func (*TranslateStore) PartitionID ¶
func (s *TranslateStore) PartitionID() int
func (*TranslateStore) ReadOnly ¶
func (s *TranslateStore) ReadOnly() bool
func (*TranslateStore) SetReadOnly ¶
func (s *TranslateStore) SetReadOnly(v bool)
func (*TranslateStore) TranslateID ¶
func (s *TranslateStore) TranslateID(id uint64) (string, error)
func (*TranslateStore) TranslateIDs ¶
func (s *TranslateStore) TranslateIDs(ids []uint64) ([]string, error)
func (*TranslateStore) TranslateKey ¶
func (s *TranslateStore) TranslateKey(key string, writable bool) (uint64, error)
func (*TranslateStore) TranslateKeys ¶
func (s *TranslateStore) TranslateKeys(keys []string, writable bool) ([]uint64, error)
Click to show internal directories.
Click to hide internal directories.