Documentation ¶
Index ¶
- Constants
- Variables
- func EqualityOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
- func Filter(query *parser.Query, series *protocol.Series) (*protocol.Series, error)
- func GreaterThanOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
- func GreaterThanOrEqualOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
- func RegexMatcherOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
- type BooleanOperation
- type Datastore
- type Field
- type LevelDbDatastore
- func (self *LevelDbDatastore) Close()
- func (self *LevelDbDatastore) DeleteRangeOfRegex(database string, regex *regexp.Regexp, startTime, endTime time.Time) error
- func (self *LevelDbDatastore) DeleteRangeOfSeries(database, series string, startTime, endTime time.Time) error
- func (self *LevelDbDatastore) ExecuteQuery(database string, query *parser.Query, yield func(*protocol.Series) error) error
- func (self *LevelDbDatastore) WriteSeriesData(database string, series *protocol.Series) error
- type Type
Constants ¶
View Source
const ( TYPE_INT = iota TYPE_STRING TYPE_BOOL TYPE_DOUBLE TYPE_UNKNOWN )
View Source
const ( ONE_MEGABYTE = 1024 * 1024 ONE_GIGABYTE = ONE_MEGABYTE * 1024 TWO_FIFTY_SIX_KILOBYTES = 256 * 1024 BLOOM_FILTER_BITS_PER_KEY = 64 MAX_POINTS_TO_SCAN = 1000000 MAX_SERIES_SIZE = ONE_MEGABYTE )
Variables ¶
View Source
var ( NEXT_ID_KEY = []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} SERIES_COLUMN_INDEX_PREFIX = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFD} SERIES_COLUMN_DEFINITIONS_PREFIX = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE} DATABASE_SERIES_INDEX_PREFIX = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} MAX_TIMESTAMP_AND_SEQUENCE = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} MIN_TIMESTAMP_AND_SEQUENCE = []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} MAX_SEQUENCE = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} END_KEYSPACE_MARKER = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} )
Functions ¶
func EqualityOperator ¶
func EqualityOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
func GreaterThanOperator ¶
func GreaterThanOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
func GreaterThanOrEqualOperator ¶
func GreaterThanOrEqualOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
func RegexMatcherOperator ¶
func RegexMatcherOperator(leftValue, rightValue *protocol.FieldValue) (bool, error)
Types ¶
type BooleanOperation ¶
type BooleanOperation func(leftValue, rightValue *protocol.FieldValue) (bool, error)
type Datastore ¶
type Datastore interface { ExecuteQuery(database string, query *parser.Query, yield func(*protocol.Series) error) error WriteSeriesData(database string, series *protocol.Series) error DeleteRangeOfSeries(database, series string, startTime, endTime time.Time) error DeleteRangeOfRegex(database string, regex *regexp.Regexp, startTime, endTime time.Time) error Close() }
func NewLevelDbDatastore ¶
type LevelDbDatastore ¶
type LevelDbDatastore struct {
// contains filtered or unexported fields
}
func (*LevelDbDatastore) Close ¶
func (self *LevelDbDatastore) Close()
func (*LevelDbDatastore) DeleteRangeOfRegex ¶
func (*LevelDbDatastore) DeleteRangeOfSeries ¶
func (self *LevelDbDatastore) DeleteRangeOfSeries(database, series string, startTime, endTime time.Time) error
func (*LevelDbDatastore) ExecuteQuery ¶
func (*LevelDbDatastore) WriteSeriesData ¶
func (self *LevelDbDatastore) WriteSeriesData(database string, series *protocol.Series) error
Click to show internal directories.
Click to hide internal directories.