Documentation ¶
Index ¶
- type ReadCloser
- type TranslateEntryReader
- type TranslateStore
- func (s *TranslateStore) Close() error
- func (s *TranslateStore) ComputeTranslatorSummaryCols(partitionID int, topo *pilosa.Topology) (sum *pilosa.TranslatorSummary, err error)
- func (s *TranslateStore) ComputeTranslatorSummaryRows() (sum *pilosa.TranslatorSummary, err 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) GetStorePath() string
- func (s *TranslateStore) IDWalker(walk func(key string, col uint64)) error
- func (s *TranslateStore) KeyWalker(walk func(key string, col uint64)) 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) RepairKeys(topo *pilosa.Topology, verbose, applyKeyRepairs bool) (changed bool, err error)
- 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) ComputeTranslatorSummaryCols ¶ added in v2.3.0
func (s *TranslateStore) ComputeTranslatorSummaryCols(partitionID int, topo *pilosa.Topology) (sum *pilosa.TranslatorSummary, err error)
func (*TranslateStore) ComputeTranslatorSummaryRows ¶ added in v2.3.0
func (s *TranslateStore) ComputeTranslatorSummaryRows() (sum *pilosa.TranslatorSummary, err error)
func (*TranslateStore) CreateKeys ¶ added in v2.1.8
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 ¶ added in v2.1.8
func (s *TranslateStore) FindKeys(keys ...string) (map[string]uint64, error)
func (*TranslateStore) GetStorePath ¶ added in v2.3.0
func (s *TranslateStore) GetStorePath() string
func (*TranslateStore) IDWalker ¶ added in v2.3.0
func (s *TranslateStore) IDWalker(walk func(key string, col uint64)) error
func (*TranslateStore) KeyWalker ¶ added in v2.3.0
func (s *TranslateStore) KeyWalker(walk func(key string, col 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) RepairKeys ¶ added in v2.3.0
func (s *TranslateStore) RepairKeys(topo *pilosa.Topology, verbose, applyKeyRepairs bool) (changed bool, err error)
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.