Documentation ¶
Index ¶
- Constants
- func Bool(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func Bytes(r *roaring.Bitmap, tr tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func Enum(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func Float64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func Int64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func String(r *roaring.Bitmap, tr tr.Translate, field protoreflect.FieldDescriptor, ...) error
- func Uint64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, ...) error
- func ViewKey(field, view string) string
- type Fields
- type Ops
- type Option
- type RangeCallback
- type Reader
- func (r Reader[T]) Range(start, end time.Time) []Shard
- func (r Reader[T]) RangeUnit(start, end time.Time, unit rune) []Shard
- func (r *Reader[T]) Release() error
- func (r Reader[T]) Standard() Shard
- func (r *Reader[T]) Tr() *tr.Read
- func (r *Reader[T]) View(shard Shard, f func(txn *tx.Tx) error) error
- type Schema
- type Shard
- type Shards
- type Store
- type Views
- type Writers
Constants ¶
View Source
const ( StandardView = "standard" Quantum = "20060102" TimestampField = protoreflect.Name("timestamp") ID = "_id" // It might be excessive but our goal is to be extremely useful and by having // database per shard we can afford being this granular // // Timeseries endpoints for vince requires IngestQuantum = "YMDH" )
Variables ¶
This section is empty.
Functions ¶
func Bool ¶ added in v0.22.7
func Bool(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
Bool writes a boolean proto value
func Bytes ¶ added in v0.22.7
func Bytes(r *roaring.Bitmap, tr tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
func Enum ¶ added in v0.22.7
func Enum(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
Enum writes enum proto value
func Float64 ¶ added in v0.22.7
func Float64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
func Int64 ¶ added in v0.22.7
func Int64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
Int64 writes int64 proto value
func String ¶ added in v0.22.7
func String(r *roaring.Bitmap, tr tr.Translate, field protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
func Uint64 ¶ added in v0.22.7
func Uint64(r *roaring.Bitmap, _ tr.Translate, _ protoreflect.FieldDescriptor, id uint64, value protoreflect.Value) error
Types ¶
type RangeCallback ¶ added in v0.22.7
type Reader ¶ added in v0.22.7
func (Reader[T]) Range ¶ added in v0.22.7
Range returns shards for the time range. We select possible views to read from based on start and end.
We Store Hour, Day, Month and Year Quantum.
type Schema ¶ added in v0.22.7
Schema maps proto fields to rbf types.
func (*Schema[T]) Range ¶ added in v0.22.7
func (s *Schema[T]) Range(f RangeCallback) error
Click to show internal directories.
Click to hide internal directories.