Documentation ¶
Index ¶
- Variables
- type AppendResult
- type Blob
- type Config
- func (conf *Config) IndexedSegmentPath(tailOffset Offset) string
- func (conf *Config) IndexingSegmentPath() string
- func (conf *Config) IndexingSegmentTmpPath() string
- func (conf *Config) RawSegmentPath(tailOffset Offset) string
- func (conf *Config) TailSegmentPath() string
- func (conf *Config) TailSegmentTmpPath() string
- func (conf *Config) TombstoneSegmentPath() string
- func (conf *Config) TombstoneSegmentTmpPath() string
- type Entry
- type Filter
- type Offset
- type OffsetsCollector
- type Reader
- func (reader *Reader) Close() error
- func (reader *Reader) Refresh() (headMoved bool, tailMoved bool)
- func (reader *Reader) RefreshTail(ctx context.Context) (tailMoved bool)
- func (reader *Reader) SearchForward(ctxObj context.Context, req *SearchRequest) error
- func (reader *Reader) TailOffset() Offset
- type Row
- type RowsCollector
- type SearchCallback
- type SearchRequest
- type StopAt
- type Store
- func (store *Store) Append(ctxObj context.Context, entry *Entry) (Offset, error)
- func (store *Store) BatchAppend(ctxObj context.Context, resultChan chan<- AppendResult, entries []*Entry)
- func (store *Store) Config() Config
- func (store *Store) NewBlobValueFilter(column int, value Blob) Filter
- func (store *Store) NewReader(ctxObj context.Context) (*Reader, error)
- func (store *Store) Remove(ctxObj context.Context, removingFrom Offset) error
- func (store *Store) RotateIndex(ctxObj context.Context) error
- func (store *Store) Stop(ctx context.Context) error
- func (store *Store) UpdateIndex(ctxObj context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SearchAborted = errors.New("search aborted")
SearchAborted should be returned if you want to end the scanForward from callback
View Source
var SegmentOverflowError = errors.New("please rotate to new chunk")
Functions ¶
This section is empty.
Types ¶
type AppendResult ¶
type Config ¶
type Config struct { Directory string // contains filtered or unexported fields }
func (*Config) IndexedSegmentPath ¶
func (*Config) IndexingSegmentPath ¶
func (conf *Config) IndexingSegmentPath() string
func (*Config) IndexingSegmentTmpPath ¶
func (conf *Config) IndexingSegmentTmpPath() string
func (*Config) RawSegmentPath ¶
func (*Config) TailSegmentPath ¶
func (conf *Config) TailSegmentPath() string
func (*Config) TailSegmentTmpPath ¶
func (conf *Config) TailSegmentTmpPath() string
func (*Config) TombstoneSegmentPath ¶
func (conf *Config) TombstoneSegmentPath() string
func (*Config) TombstoneSegmentTmpPath ¶
func (conf *Config) TombstoneSegmentTmpPath() string
type OffsetsCollector ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is not thread safe, can only be used from one goroutine
func (*Reader) RefreshTail ¶
RefreshTail has minimum cost of two cas read, one for store.latestVersion, one for tailSegment.tail
func (*Reader) SearchForward ¶
func (reader *Reader) SearchForward(ctxObj context.Context, req *SearchRequest) error
func (*Reader) TailOffset ¶
type RowsCollector ¶
type SearchCallback ¶
type SearchRequest ¶
type SearchRequest struct { StartOffset Offset Filter Filter Callback SearchCallback }
type StopAt ¶
type StopAt struct { Offset Offset SearchCallback SearchCallback }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is physically a directory, containing multiple files on disk it represents the history by a log of entries
func (*Store) BatchAppend ¶
func (store *Store) BatchAppend(ctxObj context.Context, resultChan chan<- AppendResult, entries []*Entry)
func (*Store) NewBlobValueFilter ¶
Source Files ¶
- block.go
- block_manager.go
- chunk.go
- filter.go
- indexing_strategy.go
- lstore.go
- lstore_appender.go
- lstore_appender_append.go
- lstore_appender_config.go
- lstore_appender_load.go
- lstore_indexer.go
- lstore_indexer_config.go
- lstore_indexer_load.go
- lstore_reader.go
- lstore_remover.go
- lstore_remover_config.go
- lstore_remover_load.go
- lstore_state.go
- row.go
- segment.go
- segment_index.go
- segment_index_build.go
- segment_index_search.go
- segment_raw.go
- segment_tail.go
- slot_index.go
- slot_index_manager.go
Click to show internal directories.
Click to hide internal directories.