Documentation ¶
Overview ¶
Package catena provides a time series storage engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a handle to a catena database.
func NewDB ¶
NewDB creates a new DB located in baseDir. If baseDir does not exist it will be created. An error is returned if baseDir is not empty.
func (*DB) Close ¶ added in v0.1.0
Close closes the DB and releases any internal state. Close will block if there are active iterators.
func (*DB) InsertRows ¶
InsertRows inserts the given rows into the database.
func (*DB) Metrics ¶
Metrics returns a slice of metrics that are present within the given time range for the given source.
func (*DB) NewIterator ¶ added in v0.1.0
NewIterator creates a new Iterator for the given source and metric.
type Iterator ¶ added in v0.1.0
An Iterator is a cursor over an array of points for a source and metric.
func (*Iterator) Close ¶ added in v0.1.0
func (i *Iterator) Close()
Close closes the iterator. Iterators MUST be closed to unblock the compactor!