mock

package
v2.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (*ReadCloser) Read

func (rc *ReadCloser) Read(p []byte) (int, 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) ForceSet

func (s *TranslateStore) ForceSet(id uint64, key string) 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) ReadFrom

func (s *TranslateStore) ReadFrom(r io.Reader) (int64, error)

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)

func (*TranslateStore) WriteTo

func (s *TranslateStore) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL