Documentation ¶
Overview ¶
Package metrics provides a bleve.store.KVStore implementation that wraps another, real KVStore implementation, and uses go-metrics to track runtime performance metrics.
Index ¶
- Constants
- func New(mo store.MergeOperator, config map[string]interface{}) (store.KVStore, error)
- func TimerMap(timer metrics.Timer) map[string]interface{}
- func WriteTimerCSV(w io.Writer, timer metrics.Timer)
- func WriteTimerCSVHeader(w io.Writer, prefix string)
- func WriteTimerJSON(w io.Writer, timer metrics.Timer)
- type Batch
- type Iterator
- type Reader
- type Store
- func (s *Store) AddError(op string, err error, key []byte)
- func (s *Store) Close() error
- func (s *Store) Reader() (store.KVReader, error)
- func (s *Store) Stats() json.Marshaler
- func (s *Store) StatsMap() map[string]interface{}
- func (s *Store) WriteCSV(w io.Writer)
- func (s *Store) WriteCSVHeader(w io.Writer)
- func (s *Store) WriteJSON(w io.Writer) (err error)
- func (s *Store) Writer() (store.KVWriter, error)
- type StoreError
- type Writer
Constants ¶
View Source
const MaxErrors = 100
View Source
const Name = "metrics"
Variables ¶
This section is empty.
Functions ¶
func WriteTimerCSV ¶
func WriteTimerCSVHeader ¶
func WriteTimerJSON ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PrefixIterator ¶
func (r *Reader) PrefixIterator(prefix []byte) (i store.KVIterator)
func (*Reader) RangeIterator ¶
func (r *Reader) RangeIterator(start, end []byte) (i store.KVIterator)
type Store ¶
type Store struct { TimerReaderGet metrics.Timer TimerReaderMultiGet metrics.Timer TimerReaderPrefixIterator metrics.Timer TimerReaderRangeIterator metrics.Timer TimerWriterExecuteBatch metrics.Timer TimerIteratorSeek metrics.Timer TimerIteratorNext metrics.Timer TimerBatchMerge metrics.Timer // contains filtered or unexported fields }
func (*Store) WriteCSVHeader ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) NewBatchEx ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.